script_export
Export a cubicle.script to one self-contained Python file for backtesting.py (target backtesting), vectorbt or backtrader, with the cubicle exporter: the file carries its own Pine-exact indicators and the script's machine as the runner steps it, and its header names the script hash and the fill settings. A construct the target cannot express is refused and named (say which one, and that script_rehearse still runs the script). If the deck answers that the exporter is not installed, say so; never write an export by hand. Free.
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": {
"script": "<script>",
"target": "<target>"
},
"name": "script_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | the cubicle.script YAML text (version 1 or 1.1) | |
| target | Yes | the backtester |