Manage Script Trigger
manage_script_triggerList or delete a script project's installable triggers for the current user, enabling trigger inspection and removal without opening the Apps Script editor.
Instructions
List or delete the current user's installable triggers on a script project.
The Apps Script REST API has no triggers resource, so in dev_mode both actions
provision (or refresh) a small helper file and run it via the Execution
API - the only way to inspect or change trigger state without opening the
editor. Neither action is read-only: the helper file may be written into the
project on first use. To create a trigger, use generate_trigger_code to
produce the setup code, add it with manage_script_content, then run it with
run_script_function.
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>",
"action": "<action>",
"script_id": "<script_id>"
},
"name": "manage_script_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | One of "list", "delete". | |
| dev_mode | No | Run against the latest saved code (default; project owner only) vs. the deployed version. False requires the helper to already exist in the deployed version. | |
| script_id | Yes | The script project ID. | |
| trigger_id | No | Unique ID of a specific trigger to delete (delete only). | |
| deployment_id | No | Optional API Executable deployment ID. When omitted, the highest versioned API Executable deployment is used. | |
| handler_function | No | Delete all triggers calling this function name (delete only). | |
| user_google_email | Yes | User's email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |