explain_pine_error
USE WHEN diagnosing a Pine Script compilation or runtime error. Returns semantically relevant documentation chunks alongside the bundled common-errors reference. If the error mentions an unknown function name, also call validate_function() after this tool. AFTER calling this tool, call validate_function(fn_name) if the error mentions an unrecognised function; call get_section() on any suggested doc paths to read full context. Data sourced from ai-ready-data semantic index and bundled concepts/common_errors.md.
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": {
"error_text": "<error_text>"
},
"name": "explain_pine_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Optional: the Pine Script code that produced the error. | |
| error_text | Yes | The exact error message from the TradingView Pine Script compiler or runtime. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |