pine_analyze
Run static analysis on Pine Script code without compiling to catch array out-of-bounds, unguarded first()/last(), bad loop bounds, and implicit bool casts offline.
Instructions
Run static analysis on Pine Script code WITHOUT compiling — catches array out-of-bounds, unguarded array.first()/last(), bad loop bounds, and implicit bool casts. Works offline, no TradingView connection needed.
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_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Pine Script source code to analyze |