ghl_clientportal_get_agent_run
Retrieve the current state of a client portal AI builder run to poll build progress or check completion within a tenant-scoped project.
Instructions
CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running.
Get the current state of a run (poll-friendly).
Strictly tenant- and project-scoped. A run that exists under a
different projectId (or under a different tenant entirely)
returns 404 not_found — never 403, never the run record.
This matches OWASP API1:2023 Broken Object Level Authorization
guidance: same shape for "doesn't exist" and "not yours".
Endpoint: GET /ai-builder-api/projects/{projectId}/runs/{runId} (Version header: v3; source: v3/clientportal-ai-v3.json)
OAuth scopes: clientportal-ai.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The run's id. | |
| projectId | Yes | The project's id. |