Create Run (beta)
alterlab_run_createSubmit a plan of scrape and search steps (beta feature) with a required max_credits budget. Returns the run id, its state and one summed estimate; nothing executes until alterlab_run_approve (or auto_approve when the estimate fits the budget). Use dry_run to validate and estimate without storing a run. The same idempotency_key with the same plan returns the original run. Requires the agent-runs beta to be enabled for the account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"max_credits": "<max_credits>",
"steps": "<steps>"
},
"name": "alterlab_run_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Plan steps | |
| dry_run | No | Validate and estimate only; store nothing | |
| max_credits | Yes | Hard credit budget for the whole run | |
| webhook_url | No | Optional URL that receives run.* events | |
| auto_approve | No | Start immediately when the estimate is within max_credits | |
| idempotency_key | No | Makes a retried create return the original run |