{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-wait-run",
  "title": "onf_wait_run",
  "section": "MCP tool reference",
  "description": "Wait up to 30 seconds for a run to finish, returning its current details and completed flag. If still running, call again; waiting does not execute code or cancel a run.",
  "kind": "mcp",
  "url": "/wiki/tool-onf-wait-run/",
  "markdown": "/wiki/tool-onf-wait-run/index.md",
  "json": "/wiki/tool-onf-wait-run/index.json",
  "headings": [
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "exact-input-schema",
      "title": "Exact input schema",
      "depth": 2
    },
    {
      "id": "mcp-annotations",
      "title": "MCP annotations",
      "depth": 2
    },
    {
      "id": "calling-this-tool",
      "title": "Calling this tool",
      "depth": 2
    }
  ],
  "sources": [
    "server/mcp-tools.ts"
  ],
  "contract": {
    "name": "onf_wait_run",
    "description": "Wait up to 30 seconds for a run to finish, returning its current details and completed flag. If still running, call again; waiting does not execute code or cancel a run.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "runId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "timeoutMs": {
          "default": 10000,
          "type": "integer",
          "minimum": 0,
          "maximum": 30000
        },
        "pollIntervalMs": {
          "default": 500,
          "type": "integer",
          "minimum": 100,
          "maximum": 2000
        }
      },
      "required": [
        "runId"
      ]
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    },
    "source": {
      "file": "server/mcp-tools.ts",
      "line": 1158
    }
  }
}
