Skip to main content

tinyfish agent run

Execute a browser automation. By default the output streams as newline-delimited JSON — one object per event.
tinyfish agent run "goal" --url example.com

Flags

FlagDescription
--url <url>Target URL to automate (required)
--syncWait for the run to complete and return the full result
--asyncSubmit only — return the run_id immediately without waiting
--prettyHuman-readable output instead of JSON

Output modes

One JSON object per line as events arrive. Use this when you want live progress or are piping to another tool.
tinyfish agent run "Extract the pricing" --url example.com/pricing
{"type":"STARTED","run_id":"abc123","run_url":"https://agent.tinyfish.ai/runs/abc123"}
{"type":"PROGRESS","run_id":"abc123","purpose":"Navigating to the pricing page"}
{"type":"COMPLETE","run_id":"abc123","status":"COMPLETED","result":{"price":"$99"},"run_url":"https://agent.tinyfish.ai/runs/abc123"}
Pressing Ctrl+C during a streaming run cancels the run server-side before exiting.

tinyfish agent run list

List recent runs.
tinyfish agent run list

Flags

FlagDescription
--status <status>Filter by status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED
--limit <n>Number of runs to return (default 20, max 100)
--cursor <cursor>Pagination cursor from a previous response
--prettyHuman-readable output

Examples

tinyfish agent run list

tinyfish agent run get <run_id>

Get the full details of a specific run.
tinyfish agent run get abc123
Returns the complete run object including status, result, and metadata.

Flags

FlagDescription
--prettyHuman-readable output

Example

tinyfish agent run get abc123

tinyfish agent run cancel <run_id>

Cancel a run that is PENDING or RUNNING.
tinyfish agent run cancel abc123
{"run_id":"abc123","status":"CANCELLED","cancelled_at":"2024-01-15T10:30:00Z","message":null}

Flags

FlagDescription
--prettyHuman-readable output

Auth commands

CommandDescription
tinyfish auth loginOpen the API keys page and save a key interactively
tinyfish auth setRead an API key from stdin and save it
tinyfish auth statusCheck whether a key is configured and where it comes from
tinyfish auth logoutRemove the saved API key