5 tools registered. Strongest in task completion, weakest in trust.
// document.modelContext is the canonical entry point - the navigator.modelContext alias is deprecated.
document.modelContext.registerTool({ /* ... */ });{ name: "oxom_check_workspace_slug" /* short, unique, verb-based */ }{
"name": "oxom_check_workspace_slug",
"description": "Check whether a workspace slug is still available on oxom, before someone tries to sign up with it. Returns availability for the exact slug given.",
"inputSchema": {
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The desired workspace slug, lowercase letters, digits and hyphens (for example 'easystretcher').",
"pattern": "^[a-z0-9-]{1,64}$"
}
},
"required": [
"slug"
]
},
"annotations": {}
}usable: weak; clarity: weak// Make the tool's effect visible on the page the person is looking at:
// update the same UI your existing human flow uses when your_tool_name runs,
// so the person co-browsing sees what the agent just did.
execute: async (args, { signal }) => {
const result = await performAction(args, signal);
renderResultInPage(result); // the human-visible half of the same action
return result;
}// document.modelContext is the canonical entry point - the navigator.modelContext alias is deprecated.
document.modelContext.registerTool({ /* ... */ });{ name: "oxom_check_workspace_slug" /* short, unique, verb-based */ }oxom_get_pay_offer: description instructs agent when to use tool; oxom_navigate: description instructs agent when to use tool; oxom_when_to_use: description instructs agent how and when to use tool; oxom_agent_resources: description instructs agent when to use tool{
name: "oxom_get_pay_offer",
// Metadata DESCRIBES the tool - it never addresses the agent reading it.
// Rewrite any name, description, title, or schema field description that
// instructs the agent (which tool to prefer, what to output, rules to
// ignore) so it states what the tool does and what it returns instead.
description: "Searches the catalog and returns matching items with prices."
}{
"slug": "easystretcher"
}