Get an indicator's source code
library_get_source_codeRetrieve the complete source code of a TradingView Library indicator by its slug. Get the full code directly for analysis, review, or integration.
Instructions
The full, working source code of a Library indicator (works on TradingView). Kept separate from library_get_indicator because sources are long — call it only when the user wants the code itself.
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": {
"slug": "<slug>"
},
"name": "library_get_source_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Indicator slug |