close_agent_task
Finalize an agent task by atomically writing logs, updates, gotchas, discoveries, escalations, and rewrites, aborting the commit if any write is forbidden.
Instructions
Transactional end-of-task writeback for an agent: appends task log, updates hot, writes gotchas, publishes discoveries/escalations, creates rewrites. Atomic — any forbidden write aborts the whole commit.
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": {
"agent_id": "<agent_id>"
},
"name": "close_agent_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gotcha | No | ||
| project | No | ||
| agent_id | Yes | ||
| rewrites | No | ||
| hotUpdate | No | ||
| discoveries | No | ||
| escalations | No | ||
| taskLogEntry | No |