pine_new
Replace the current Pine editor buffer with a blank template for an indicator, strategy, or library. Requires confirm_overwrite if the buffer holds real content to prevent accidental loss.
Instructions
Replace the Pine editor buffer with a blank template. WARNING: this does NOT create a new saved script. It overwrites whatever script the editor currently has open, and a following pine_save or pine_compile persists that overwrite to the cloud. It refuses to run when the buffer holds real content unless confirm_overwrite is set.
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": {
"type": "<type>"
},
"name": "pine_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Template to write into the editor | |
| confirm_overwrite | No | Required when the editor already holds real content. Read it with pine_get_source first. |