tv_pine_patch
Overwrite the entire Pine Script editor buffer with a full replacement source. Use before saving to apply changes in TradingView.
Instructions
Patch the Pine editor with a full replacement source (semantic patch = overwrite editor buffer). Call tv_pine_save afterwards.
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": {
"scriptName": "<scriptName>",
"source": "<source>"
},
"name": "tv_pine_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full replacement Pine Script v6 source. | |
| scriptName | Yes |