blob: 4aeabce0ed6f9abdcad2f12a5a7a39f90a2b2e78 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>OK</title>
</head>
<body>
<script>
async function echo(obj) {
return obj.text;
}
navigator.modelContext.registerTool({
execute: echo,
name: "echo",
description: "echo input",
inputSchema: {
type: "object",
properties: {
"text": {
description: "Value to echo",
type: "string",
}
},
required: ["text"]
},
annotations: {
readOnlyHint: "true"
},
});
</script>
</body>
</html>