Save scraper
scraper_saveValidate Python scraper source code, then save it under a given name for execution on the next run. Supports atomic compare-and-swap to prevent overwriting concurrent changes.
Instructions
Validate and atomically save a scraper for the next run.
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": {
"name": "<name>",
"source": "<source>"
},
"name": "scraper_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name without a directory or .py suffix | |
| source | Yes | Complete UTF-8 Python source defining async def scrape(ctx, params) | |
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||