pine_set_source
Injects Pine Script source code into the TradingView editor so AI clients or CLI users can update chart scripts programmatically.
Instructions
Set Pine Script source code in 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": {
"source": "<source>"
},
"name": "pine_set_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Pine Script source code to inject |