pine_check
Validate Pine Script code before chart injection by compiling it through TradingView's API without an open chart; returns compilation errors and warnings.
Instructions
Compile Pine Script via TradingView's server API without needing the chart open. Returns compilation errors/warnings. Useful for validating code before injecting into the chart.
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_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Pine Script source code to compile/validate |