pine_set_source
Set Pine Script source code in the TradingView editor to replace existing content. Enables AI-generated scripts to be loaded directly for analysis and backtesting.
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 |