abort_task
Halt a running task session mid-way or retroactively void a completed session, returning its aborted status with completed and failed steps.
Instructions
Mark a task session as aborted and return its completion status.
Looks up the session in long-term memory and surfaces its completed/failed
step list with an aborted label. Use this when a running task must be halted
mid-way or when a completed session needs to be retroactively voided.
Args:
session_id: 8-char session ID from list_agent_sessions or run_task output.
reason: Abort reason string (default "user_requested").
Returns:
str: JSON with aborted, session_id, reason, steps_completed, steps_failed.
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": {
"session_id": "<session_id>"
},
"name": "abort_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | user_requested | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |