pine_get_script_source
Retrieve a saved Pine Script's source via REST API without altering the editor buffer, enabling comparison with local files or auditing deployed scripts.
Instructions
Read a saved Pine Script's source over the REST API WITHOUT touching the editor buffer. Use this to compare a saved script against a local file or audit what is deployed - it cannot destroy unsaved work and cannot mis-bind the editor.
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_get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the saved script (case-insensitive; an ambiguous substring is refused with candidates) |