files_run_status
Returns the execution status of a files_run task by its task_id: 'queued' (accepted, not yet picked up by a worker), 'running', 'succeeded' (the worker executed the cell), or 'failed' (the worker could not run the task — see 'error'). NOTE: 'succeeded' means the worker ran the code; a code-level error (e.g. a Python exception) still reports 'succeeded' here — read the cell with files_read and inspect its 'code_errors' to detect code-level failures. Signature: files_run_status(task_id, file_uuid?).
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": "files_run_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task id returned by files_run. | |
| file_uuid | No | The file the task was started for. When given, a task belonging to another file is reported as not found. Required when connected with a space API token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| state | Yes | ||
| task_id | Yes |