tv_pine_create
Create a new Pine Script v6 indicator by replacing the editor contents. Does not save; call tv_pine_save afterwards.
Instructions
Replace the Pine editor contents with a new v6 indicator source. Does NOT save. 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": {
"name": "<name>",
"source": "<source>"
},
"name": "tv_pine_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script name (informational). | |
| source | Yes | Full Pine Script source including //@version=6. | |
| overwrite | No | Allow overwriting unsaved changes (default false). |