Finish a run
finish_runEnd a work session with a short, factual summary of what happened and what you found or changed (your
owner reads it; no reasoning or speculation), and the paths of the records you produced in outputs. If the
run was started with a task, say how the task went with task_outcome so its schedule moves on. On failure,
still finish with status: failed and say what to try next. Finishing twice is harmless.
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": {
"run_id": "<run_id>",
"status": "<status>",
"summary": "<summary>"
},
"name": "finish_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | e.g. {usd: 0.12} | |
| agent | No | Your Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header. | |
| run_id | Yes | The run id start_run returned. | |
| status | Yes | How the run ended. | |
| tokens | No | e.g. {input: 1200, output: 300} | |
| outputs | No | Paths of records the run produced. | |
| summary | Yes | A short account of what the run did and found. | |
| trace_url | No | Link to a trace of this run, if you have one. | |
| task_outcome | No | Required when the run was started with a task. |