Register Task
register_taskCreates a monitored coding-agent task record so an independent watchdog can resume interrupted work from the same session or checkpoint.
Instructions
Register a coding-agent task for monitoring and automatic recovery. The agent (or its launcher) calls this when starting a task so the watchdog can resume it after interruptions.
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": {
"taskId": "<taskId>",
"adapterId": "<adapterId>",
"workingDirectory": "<workingDirectory>",
"description": "<description>"
},
"name": "register_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Unique task identifier | |
| adapterId | Yes | Adapter id, e.g. 'opencode', 'claude-code' | |
| agentType | No | Agent type label (defaults to adapterId) | |
| sessionId | No | Existing agent session id to resume, when known | |
| processPid | No | Agent process id, when launched by the caller | |
| description | Yes | Original task description used as recovery context | |
| maxAttempts | No | Recovery attempt budget (default from configuration) | |
| workingDirectory | Yes | Absolute working directory the agent runs in |