close-agent-pane
Close a managed viewer pane after an agent completes, fails, or is cancelled without terminating the agent. Idempotent, and the last agent to close also closes the workspace.
Instructions
After the client observes agent completion, failure or cancellation, close only its managed viewer session. Does not terminate the agent. Last agent closes the workspace. Idempotent.
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": {
"workspaceId": "<workspaceId>",
"agentId": "<agentId>",
"status": "<status>"
},
"name": "close-agent-pane"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| agentId | Yes | ||
| delayMs | No | ||
| exitCode | No | ||
| workspaceId | Yes |