Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webmcp/imperative/register_tool_with_empty_annotation.https.window.html - WPT Dashboard Interop Dashboard
'use strict';
test(() => {
navigator.modelContext.registerTool({
name: 'echo',
description: 'echo input',
execute: (obj) => obj.text,
annotations: {
// No `readOnlyHint` member.
},
});
navigator.modelContext.unregisterTool('echo');
}, 'register tool with empty annotations');