Execute script
banana_run_scriptExecute a JavaScript file in Banana Accounting, optionally with an open document and input data.
Instructions
Execute a Banana JavaScript file on the server (/v2/script). The script path can be absolute or relative to the user's document directory. Optionally pass a document and input data to the script.
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": {
"scriptfile": "<scriptfile>"
},
"name": "banana_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indata | No | Optional text data passed to the script. | |
| ac2file | No | Optional name of an opened document passed to the script. | |
| scriptfile | Yes | Path to the script to execute (absolute or relative). |