Split work into runs of your agent’s other capabilities.
A run can start child runs: runs of a capability of the same agent, on the same version. Use them to fan out work (one child per document), or to make independent decisions independent — each child can ask a person on its own, while one run can only have one open hold at a time.
POST {api_url}/v0/capabilities/{capability}/runsx-agentos-run-token: <context.token>Idempotency-Key: r_501:split:0{"input": {"document": "f_9"}, "metadata": {"page": 1}}
It answers 202 {"run_id": "r_502", "parent_run_id": "r_501", "status": "queued"}. The input is checked against the capability’s input schema, as for any run.
The child runs on the parent’s version, with the parent’s caller.
The parent doesn’t wait for it. Follow it, or have the child do its part on its own.
The child has no session, but keeps the parent’s end user (user).
A child can only be started while the invocation is running (401 once it has answered).
Cancelling a run cancels its unfinished child runs at every depth too — queued, running or held — each with a run.cancelled event saying because: "parent r_N was cancelled". A parent that completes or fails leaves its children running.