agent_runs
Review consecutive commits by one person or AI to see what an agent changed, including docs and commit logs, and get the run ID and starting SHA needed to undo it.
Instructions
Runs: what one writer did in one go, newest first. A run is a set of consecutive commits by the same person, AI and token, with no pause over 30 minutes; it comes with the docs it changed and its newest commits (log: sha, date, subject). ai names the AI that wrote it; none means a human, or an agent that committed from a clone without saying so. Use it to review what an agent did and get the id and from sha undo_run takes; activity lists single commits, resume_session saved work. One call is enough: a host that shows views opens one per call. A run lists 20 docs (documents_more counts the rest); pass run for one run's full log and up to 100 docs, when log_more says commits are missing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agent_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | A run id: that run alone, with its commits. | |
| days | No | Runs that ended within this many days. | |
| limit | No | Most runs to return, newest first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| runs | Yes |