clear_workspace
Clears all objects from the Pure Data workspace subpatch and resets object index tracking for starting fresh.
Instructions
Clear all objects from the Pd workspace subpatch and reset index tracking.
This sends /pd/clear to Pure Data, which clears the workspace subpatch,
and resets the server-side object index counter so new objects start from 0.
Args:
ctx: MCP context
Returns:
Response with status and number of objects cleared
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||