Oxagen Docs
Mcp

MCP run dispatch

Dispatch and inspect agent runs via MCP capabilities.

MCP run dispatch

External MCP clients dispatch agent runs through capability tools that share the same dispatch pipeline as POST /v1/runs.

Tools

ToolPurpose
cap.run.dispatchDispatch a run by agent slug
cap.run.getFetch run status; optional steps and artifacts
cap.approval.resolveApprove or reject a pending approval gate

cap.run.dispatch

Input:

FieldRequiredDescription
agent_slugyesAgent slug in the active workspace
inputyesJSON object passed as run goal input
conversation_idnoLink to an existing conversation
idempotency_keynoDedup key (≤200 chars)
budget_usdnoPer-run USD cap
cost_strategynoModel routing strategy

Output includes run_id, execution_id, status, and dispatched_via (mcp).

cap.run.get

Input:

FieldRequiredDescription
run_idyesRun UUID
include_stepsnoInclude step list (default false)
include_artifactsnoInclude artifact list (default false)

Output:

FieldWhenDescription
run.idalwaysRun UUID
run.statusalwaysRun status
run.execution_idalwaysExecution UUID
run.agent_idalwaysAgent UUID
run.started_atalwaysISO-8601 start time, or null
run.ended_atalwaysISO-8601 end time, or null
run.step_countalwaysTotal step count
stepsinclude_steps=trueArray of {seq, kind, started_at, ended_at, this_hash}
artifactsinclude_artifacts=trueArray of {id, kind, name}

cap.approval.resolve

Input: approval_id, decision (approved | rejected), optional note. Returns the updated approval and run summary.

On this page