Get (or wait on) a form detection run
get_form_detection_runGet the state and output of a form detection run (edit group) — resume a status: "running" run or inspect a failed one. wait: true blocks until terminal or wait-budget expiry (call again to keep waiting). Form detection runs have no list endpoint — keep the run ID. Follow any llmContext guidance included in results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Block until terminal or budget expiry. Default false. | |
| runId | Yes | The run ID returned by detect_form_fields. | |
| environment | Yes | "TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment). | |
| waitSeconds | No | Max seconds to block waiting on the run (clamped to the server wait budget). | |
| workspaceId | Yes | Target workspace (ws_...). Must be a granted workspace — get_me lists the accepted values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| output | No | Detected edit schema (PROCESSED only). | |
| status | Yes | PROCESSING | PROCESSED | FAILED, or "running" (resume via the get tool). | |
| metrics | No | ||
| runType | No | ||
| llmContext | No | ||
| failureReason | No | ||
| failureMessage | No |