pine_open
Load a saved Pine Script into the editor buffer, replacing existing content. Confirm overwrite when unsaved work is present; for read-only access, retrieve source without modifying the buffer.
Instructions
Load a saved Pine Script into the editor buffer. THIS REPLACES THE BUFFER and does not guarantee the editor is bound to that script - check binding_verified before any pine_save. To READ a script with no buffer risk, use pine_get_script_source instead.
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>"
},
"name": "pine_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the saved script to open (case-insensitive; exact name or title wins, an ambiguous substring is refused with candidates) | |
| confirm_overwrite | No | Required to replace a buffer that holds real work. Without it the call is refused rather than destroying unsaved code, same as pine_new and pine_set_source. |