close_agent
Stop tracking an agent, optionally archive its jcode session and remove its git worktree; set force=true to remove a worktree with uncommitted changes.
Instructions
Stop tracking an agent. Optionally archive the jcode session (hides it in Desktop) and remove its git worktree. Removing a worktree with uncommitted changes needs force=true.
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": {
"id": "<id>"
},
"name": "close_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | jcode session id returned by spawn_agent | |
| force | No | ||
| archive | No | ||
| remove_worktree | No |