save_script
Persist a script definition to disk for reuse across sessions, then run it later by name with run_script instead of providing the full inline definition.
Instructions
Persist a script definition to disk at ~/.acrawl/scripts/.json for reuse across sessions. Once saved, run it later with run_script using name instead of providing the full inline definition. Use for complex extraction patterns you want to apply repeatedly.
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>",
"script": "<script>"
},
"name": "save_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name to save the script under (alphanumeric characters and underscores only, no file extension). Must be unique — overwrites any existing script with the same name. | |
| script | Yes | Script definition object (same format as the 'script' parameter in run_script). Must include version, steps, and optionally limits. |