Run a capability
hydracept_runRun a capability (paid). Use when the user wants execution — not for quotes (hydracept_quote_capability), status (hydracept_job_status), or receipts (hydracept_get_receipt). Default wait=true waits until the job finishes; use hydracept_submit_job when this call must return immediately. Picks invoke vs durable job from the capability descriptor. Requires bearer key. Settles at actual provider cost plus any managed service fee; no per-call minimum. May create jobs, artifacts, and provider usage. Returns: Terminal hydracept.run-result.v1 or job envelope when wait=false. Errors: WORKSPACE_KEY_REQUIRED, INVALID_ARGUMENT, FundingRequired, EXECUTION_FAILED, job timeout when wait exhausts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Required capability input object (schema fields). Merged with session project context when bound. | |
| wait | No | Boolean, default true. When true, poll until succeeded/failed/canceled or timeout. When false, return job id and poll with hydracept_job_status. | |
| input | No | Alias for body; do not pass both. | |
| timeout | No | Seconds to poll when wait=true; omit to poll until terminal with no tool-side limit (the MCP client request timeout may end the call first). On timeout, status may stay running — call hydracept_job_status. | |
| max_cost | No | Optional number (USD): sets execution.executionConstraints.maxCostUsd before submit. | |
| capability_key | Yes | Required capability registry key for POST .../jobs. | |
| idempotency_key | No | Optional string; server generates run-{uuid} when empty. Reuse for safe retries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||