pine_export_saved_source
Export a saved Pine script's exact source and metadata into a confined JSON artifact for offline review or version tracking.
Instructions
Export one saved script’s exact source and metadata into a confined JSON artifact.
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_export_saved_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | ||
| 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. |