origami_run_get
Poll an Origami agent run — the follow-up of origami_campaign_create
(which returns agent_id + run_id).
GET /agents/{agent_id}/runs/{run_id} — there is NO GET /runs/{id}, the
run lives under its agent. Returns the run object: status ("running" until
terminal), steps, response (tables touched, transcript with
include="transcript", economics with include="stats"). Poll until
status != "running", then read the drafted campaign with
origami_campaigns. A terminal run whose action list is EMPTY is
REFUSED (error aucune_action): it created nothing reachable, whatever its
prose says — verify with origami_campaigns(op="list_for_table"), then
relaunch origami_campaign_create ONCE (a refused run may leave a draft
shell visible only in the Origami interface; each relaunch adds one).
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": {
"agent_id": "<agent_id>",
"run_id": "<run_id>"
},
"name": "origami_run_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| run_id | Yes | from `origami_campaign_create` → `run_id`. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| include | No | optional CSV of "stats", "transcript". | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| agent_id | Yes | from `origami_campaign_create` → `agent_id`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. |