Tool tree
webmcp-rs registers WebMCP tools on document.modelContext from Rust and WebAssembly, with schemas derived from your argument types and registrations that unregister on drop.
Implementation
gradeNot graded
gradeNot graded
add_todoAction
Add one item to the todo list the user is looking at. Returns the added item with its id, text and completion state.
View tool JSON
{
"name": "add_todo",
"kind": "act",
"impl": "imperative",
"description": "Add one item to the todo list the user is looking at. Returns the added item with its id, text and completion state.",
"inputSchema": {
"properties": {
"text": {
"description": "The item to add, in the user's own words. Do not add a trailing period.",
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
}
}complete_todoAction
Mark one todo item as done. Call `list_todos` first if you do not already know the item's id.
View tool JSON
{
"name": "complete_todo",
"kind": "act",
"impl": "imperative",
"description": "Mark one todo item as done. Call `list_todos` first if you do not already know the item's id.",
"inputSchema": {
"properties": {
"id": {
"description": "The `id` of the item to act on, as returned by `list_todos`.",
"format": "uint32",
"minimum": 0,
"type": "integer"
}
},
"required": [
"id"
],
"type": "object"
}
}delete_todoSensitive Action
Remove one todo item from the list for good.
View tool JSON
{
"name": "delete_todo",
"kind": "transact",
"impl": "imperative",
"description": "Remove one todo item from the list for good.",
"inputSchema": {
"properties": {
"id": {
"description": "The `id` of the item to act on, as returned by `list_todos`.",
"format": "uint32",
"minimum": 0,
"type": "integer"
}
},
"required": [
"id"
],
"type": "object"
}
}list_todosAnswer
List every todo item with its id, text and completion state. The other tools take the ids this returns.
View tool JSON
{
"name": "list_todos",
"kind": "answer",
"impl": "imperative",
"description": "List every todo item with its id, text and completion state. The other tools take the ids this returns.",
"inputSchema": {
"type": "object"
}
}clear_completedAction
Remove every item that is already done, leaving the rest alone.
View tool JSON
{
"name": "clear_completed",
"kind": "act",
"impl": "imperative",
"description": "Remove every item that is already done, leaving the rest alone.",
"inputSchema": {
"type": "object"
}
}