[!NOTE] Requires the
airbyte-agentCLI onPATH. Install viabrew install airbytehq/tap/airbyte-agentor see the project README.
Return the full machine-readable schema for an operation: the CLI-level parameter shape and the underlying OpenAPI route's parameters, request body, and response. Equivalent to <resource> <operation> --describe, but discoverable as a top-level command.
[!IMPORTANT] Run
airbyte-agent schema <resource> <operation>before writing code or scripts that consume an operation's output. Theapi.responseschema tells you exactly what fields will come back so you can pass--fieldscorrectly the first time.
Usage
airbyte-agent schema <resource> <operation>
Examples
airbyte-agent schema workspaces list airbyte-agent schema connectors execute airbyte-agent schema organizations list
## Output shape
```jsonc
{
"description": "...", // CLI-level operation description
"params": { ... }, // CLI flag/JSON parameters (what you pass)
"api": { // OpenAPI route info (omitted if no mapping)
"path": "/api/v1/...",
"method": "GET",
"summary": "...",
"description": "...",
"parameters": [ ... ], // query/path/header parameters
"request_body": { ... }, // present on POST/PATCH/PUT routes
"response": { ... } // 200/2xx response schema, $refs inlined
}
}
The two surfaces are intentionally separate:
params— what you, as a CLI caller, pass inside the--jsonpayload. Includes CLI conveniences (workspace fallback, name/id alternation, etc.).api— what bytes go on the wire to the Airbyte API. Use this to know what fields the response will contain and pick--fieldsaccordingly.
When to use
- Before building any automation that depends on an operation's response shape — read
api.responseso you can shape your filtering/parsing precisely. - When
--fieldsreturns something unexpected —api.responseshows the exact field names and structure. - When discovering the API surface as an agent —
airbyte-agent schema <r> <op>is the canonical way to learn what an operation does without making a request.
Equivalents
airbyte-agent schema connectors execute
# is identical to
airbyte-agent connectors execute --describe
Use whichever fits your flow. airbyte-agent schema is the discoverable top-level form; --describe is the per-operation flag.
Hints
--describeandairbyte-agent schemanever make API calls — safe to run without auth, against unfamiliar accounts, etc.- Errors from
airbyte-agent schema(unknown resource or operation) are JSON on stderr with exit code 3. - Operations that don't map to an OpenAPI route omit the
apiblock. (airbyte-agent configureis also purely local but isn't a registered operation — it's a top-level command.)