code_workspace_claude_session_action
Perform actions on Claude workspace sessions, including tagging, forking, deleting, interrupting, and more.
Instructions
Perform a Claude SDK session action.
Args: action: One of: tag, fork, delete, interrupt, mcp/reconnect, mcp/toggle, rewind, tasks/stop, compact, rename body: JSON object payload (action-specific, e.g. {"tag": "..."} for tag).
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": {
"workspace_id": "<workspace_id>",
"session_id": "<session_id>",
"action": "<action>"
},
"name": "code_workspace_claude_session_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | {} | |
| action | Yes | ||
| session_id | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |