`GET /api/v1/agents/{node_id}/state/operations/{operation_id}/output` — captured script output for a state operation.
GET
/api/v1/agents/{node_id}/state/operations/{operation_id}/output
const url = 'https://example.com/api/v1/agents/example/state/operations/example/output';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/agents/example/state/operations/example/outputPer design 0015, captured stdout/stderr is stored in
<data-dir>/apply-outputs/<operation_id>.output.cbor. The response output
object is keyed by "module_name/identity" — the composite key avoids
collisions when two modules define a script resource with the same identity.
If no output file exists (no scripts produced output, or the file was lost),
the endpoint returns an empty output object — the operation record itself
remains authoritative.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” node_id
required
string
Agent node ID
operation_id
required
string
State operation ID
Responses
Section titled “ Responses ”Captured script output for the operation
Media type application/json
Example generated
exampleOperation not found