Run Script Function
run_script_functionRun a named function in a Google Apps Script project with optional parameters and choice of deployed or latest code version.
Instructions
Executes a function in a deployed 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": {
"user_google_email": "<user_google_email>",
"script_id": "<script_id>",
"function_name": "<function_name>"
},
"name": "run_script_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | User's email address | |
| script_id | Yes | The script project ID | |
| function_name | Yes | Name of function to execute | |
| parameters | No | Optional list of parameters to pass | |
| dev_mode | No | Whether to run latest code vs deployed version |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |