Undo board strokes
undo_boardUndo the agent's own most recent draw_on_board call — same ownership rule as the human "Undo my last stroke": only the caller's strokes are removed, never other participants'. One call = one batch (e.g. an arrow is one batch of 3 strokes). count undoes multiple previous batches (1-10). Broadcasts board-remove so connected clients drop those ids; get_board_state stops returning them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"roomId": "<roomId>"
},
"name": "undo_board"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many of the agent's previous draw calls (batches) to undo. Default 1, max 10. | |
| roomId | Yes | The room ID whose board to edit. | |
| senderId | No | The agent identity whose strokes to undo (must match the senderId used in draw_on_board). Defaults to "mcp-agent". | |
| agentSecret | No | Optional agent credential (8-128 chars). Must match the secret that claimed this senderId. REQUIRED on a locked pond. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| note | Yes | ||
| roomId | Yes | ||
| removed | Yes | Stroke count removed | |
| aiUserId | Yes | ||
| delivered | Yes |