execute
Run JavaScript/TypeScript scripts with authenticated access to Google Workspace APIs like Calendar and Drive for custom automation and data operations.
Instructions
Execute JavaScript/TypeScript inside a Node vm context with authenticated Google Workspace access. TypeScript type syntax is stripped before execution. The script runs inside an async function body and can use: auth, google, workspace, state. Return values with return ....
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript/TypeScript async function body. Type syntax is stripped before execution. Available variables: auth, google, workspace, state. | |
| timeoutMs | No | Execution timeout in milliseconds (default: 30000). | |
| scopes | No | Optional OAuth scopes override. Defaults to broad Google Workspace scopes. | |
| resetState | No | Reset persistent `state` object before execution. |