save_script
Save a script definition to reuse across sessions. Store complex extraction patterns for repeated application with run_script.
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.
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. |