pine_set_source
Set Pine Script source code in theView editor. Requires confirmation to overwrite existing content, reading current source with pine_source first.
Instructions
Set Pine Script source code in the editor. Refuses to overwrite a buffer holding real content unless confirm_overwrite is set.
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": {
"source": "<source>"
},
"name": "pine_set_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Pine Script source code to inject | |
| confirm_overwrite | No | Required when the editor already holds real content. Read it with pine_get_source first. |