Build command reference
agent-data parse requests an API for a website in the catalog. It returns an existing source API or accepts a build request.
See usage for build allowances. The StockX guide shows a real request, publication, and data call.
Start or match
Section titled “Start or match”agent-data parse <url> [--task "<desired capability>"] [--dry-run]<url> is the complete source URL, such as https://stockx.com/. Omit --task to request an API from the URL alone. Supply it to describe required records, fields, and inputs.
- Preview the request.
- Submit it when you intend to create work.
agent-data parse https://stockx.com/ --dry-runagent-data parse https://stockx.com/Each invocation uses a separate Idempotency-Key, the identifier for retries of that submission. A preview’s key does not carry into another command.
Save one UUID for the request before submission. A UUID is a unique identifier for the saved request.
./└── build-request-id.txt # Saved request UUIDThe Node.js command creates this file. It reports an error if the file exists, so it cannot overwrite your saved identity.
node -e 'require("node:fs").writeFileSync("build-request-id.txt", require("node:crypto").randomUUID()+"\n", {flag:"wx"})'curl --fail-with-body 'https://agent-data.motie.dev/api/v1/parse' \ -H "Authorization: Bearer $AGENT_DATA_API_KEY" \ -H "Idempotency-Key: $(cat build-request-id.txt)" \ -H 'Content-Type: application/json' \ --data '{"url":"https://stockx.com/"}'The request requires url. Omit task when you need no additional instructions. Keep the key and body unchanged for a retry.
The parse tool requires a saved UUID requestId and source url. Omit task when you need no additional instructions.
Ask your agent to save the exact arguments before submission. Reuse them after a transport failure. Follow the returned parse_job_id with parse_status.
MCP has no build preview input. Use the CLI preview if you need to check the request before submission.
Existing source
Section titled “Existing source”One API represents each source hostname. Hostname case, a leading www, paths, and query strings do not create a different source. Other subdomains remain separate.
| Match field | Meaning |
|---|---|
matched: true | The source has an API. |
match_scope: "source" | The match identifies the source website. |
task_support: "unverified" | The match does not establish support for your requested operation. |
Read the returned contract before a data call. An active build can produce a source conflict instead of another build.
Accepted new build
Section titled “Accepted new build”This November 14, 2026 StockX excerpt shows acceptance.
{ "matched": false, "parse_job_id": "pj_1da416ddc9adccdf2a0856d7", "status": "queued", "phase": "building", "status_url": "/api/v1/parse/pj_1da416ddc9adccdf2a0856d7", "serving_changed": false}parse_job_id identifies the build. Save it for status requests. This response supplies no usable endpoint yet.
StockX has a published API. A repeat request may return that API instead of the captured new-build response.
Follow-up commands
Section titled “Follow-up commands”<job-id> is your returned pj_… build identifier. For example, pj_1da416ddc9adccdf2a0856d7 identifies the captured StockX build. Use the account that submitted your build for these reads.
| CLI command | Effect |
|---|---|
agent-data parse list | List your builds, newest first. |
agent-data parse status <job-id> | Read progress, errors, available actions, and publication details. |
agent-data parse events <job-id> | Read recorded events. |
agent-data parse events <job-id> --follow | Stream events. |
agent-data parse revise <job-id> "<change>" | Request an additive change to a live listing in your account. |
agent-data parse resume <job-id> | Continue an eligible blocked build with a fresh time budget. |
agent-data parse cancel <job-id> | Request cancellation of unfinished work. |
| Option | Effect |
|---|---|
List --limit <n>, --offset <n> | Select a page of builds. |
Events --since-seq <N> | Read events after sequence N. |
Events --max <N> | Select the event count. |
Events --state-dir <path> | Select the cursor directory. Omit it to use ~/.agent-data/state. |
Events --no-resume | Disable saved-cursor reads and writes. |
Cancel --reason "<text>" | Record your reason on the job. |
--api-key, --base-url, --verbose, --help | Use common CLI options. |
A cursor records your position in an event stream. The CLI stores it here unless you select another directory.
~/.agent-data/└── state/ # Event-stream cursors| HTTP method and path | Body or result |
|---|---|
GET /api/v1/parse | Your builds. |
GET /api/v1/parse/{job-id} | Build status. |
POST /api/v1/parse/{job-id}/revise | Body {"task":"your_change_here"}. |
POST /api/v1/parse/{job-id}/resume | Body {}. |
POST /api/v1/parse/{job-id}/cancel | Body {} or {"reason":"your_reason_here"}. |
MCP supplies parse_status with the required parse_job_id string. Use CLI or HTTP for the other actions above.
Start options in CLI 0.13.0
Section titled “Start options in CLI 0.13.0”| Option | Meaning |
|---|---|
-t, --task <text> | Describe the desired operation. |
--dry-run | Preview the request without submission. |
--city-hive | Use the City Hive template. |
--api-key <key>, --base-url <url>, --verbose | Use common CLI options. |
--model <provider:id> | Select a model as a beta platform administrator. |
--reasoning-effort <effort> | Select beta-admin Luna effort: none, low, medium, high, xhigh, or max. |
--recon-dossier <on|off> | Select beta-admin reconnaissance behavior. |
--recon-inject-tokens <n> | Set a positive token budget with the reconnaissance override. |
--session-deadline-s <seconds> | Set a beta-admin wall-clock budget of at least 60 seconds. |
--city-hive cannot combine with task, model, reasoning, reconnaissance, interrupt, or deadline options. The CLI reports a runtime deadline of 3,600 seconds when you omit the override. Resume uses the runtime default.
Submission errors
Section titled “Submission errors”| What you see | What to do |
|---|---|
model_override_disabled | Omit the model override because it requires beta platform-admin access. |
not_supported_in_v1 | Request a public API through the supported options above. |
| A source conflict. | Find the existing API or build. |
Read outcomes correctly
Section titled “Read outcomes correctly”Phases can include building, deploying, publishing, probing, and live. The response can also report blocked or failed work. Read its summary and next action instead of assuming every phase appears.
Follow a build to interpret progress. Build outcomes distinguishes publication, health, and a successful data call.
When to extend instead
Section titled “When to extend instead”If the source API exists but lacks your operation, extend that API.