script_run
Executes an Apps Script function and returns its result or error with stack trace; set devMode=true to run the latest saved code.
Instructions
Run a function in an Apps Script project and return its result (or error and stack trace). devMode=true runs the latest saved code. Requires: the script's GCP project set to this connector's project, an API executable deployment (script_deploy), and the script authorized once in the editor. Confirm with the user before running code that sends email, edits many rows or deletes data.
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": {
"scriptId": "<scriptId>",
"function": "<function>"
},
"name": "script_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devMode | No | ||
| function | Yes | ||
| scriptId | Yes | ||
| parameters | No |