run_script_function_tool
Execute functions in deployed Google Apps Script projects by specifying script ID and function name, enabling automated workflow integration and API execution.
Instructions
Execute a function in a deployed script.
Note: Requires the script to be deployed as "API Executable" in the Apps Script editor. See README for setup instructions.
Args: script_id: The script project ID function_name: Name of function to execute parameters: Optional list of parameters to pass to the function dev_mode: If True, run latest code; if False, run deployed version
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>",
"function_name": "<function_name>"
},
"name": "run_script_function_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| function_name | Yes | ||
| parameters | No | ||
| dev_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |