task_logs
Read the last lines of a spawned task's captured stdout/stderr to monitor progress or diagnose failures. Returns recent log output when available.
Instructions
Read tail of a spawned task's captured stdout/stderr log.
Only works for tasks spawned with capture_output=True (default).
Returns the last tail_lines lines or 'no_log' if the task ran with
capture_output=False or the log file is missing.
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": {
"task_id": "<task_id>"
},
"name": "task_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |