pine_can_write
Checks whether a saved Pine script has native write permission in TradingView, reading the boolean result for a given script ID before you attempt edits.
Instructions
Inspect TradingView’s native write-permission result for one saved script; only a literal boolean is interpreted as can_write.
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": {
"script_id": "<script_id>"
},
"name": "pine_can_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| target_id | No | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| expected_layout_id | No | Expected saved-layout ID. A mismatch stops the operation before writing. |