productivity
Google Apps Script CLI for AI Agents
Use the Google Apps Script CLI from KosmoKrator to call Google Apps Script tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Google Apps Script CLI Setup
Google Apps Script can be configured headlessly with `kosmokrator integrations:configure google-apps-script`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure google-apps-script --enable --read allow --write ask --json
kosmokrator integrations:doctor google-apps-script --json
kosmokrator integrations:status --json Credentials
Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
No credentials are required.
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call google-apps-script.google_apps_script_projects_get_content '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_get_content '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs google-apps-script --json
kosmo integrations:docs google-apps-script.google_apps_script_projects_get_content --json
kosmo integrations:schema google-apps-script.google_apps_script_projects_get_content --json
kosmo integrations:search "Google Apps Script" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
google-apps-script.google_apps_script_projects_get_content
Projects Get Content (GET /v1/projects/{scriptId}/content).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_get_content '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_get_content '{}' --json google-apps-script.google_apps_script_projects_get
Projects Get (GET /v1/projects/{scriptId}).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_get '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_get '{}' --json google-apps-script.google_apps_script_projects_create
Projects Create (POST /v1/projects).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_create '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_create '{}' --json google-apps-script.google_apps_script_projects_update_content
Projects Update Content (PUT /v1/projects/{scriptId}/content).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_update_content '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_update_content '{}' --json google-apps-script.google_apps_script_projects_get_metrics
Projects Get Metrics (GET /v1/projects/{scriptId}/metrics).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_get_metrics '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_get_metrics '{}' --json google-apps-script.google_apps_script_projects_deployments_delete
Projects Deployments Delete (DELETE /v1/projects/{scriptId}/deployments/{deploymentId}).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_delete '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_deployments_delete '{}' --json google-apps-script.google_apps_script_projects_deployments_create
Projects Deployments Create (POST /v1/projects/{scriptId}/deployments).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_create '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_deployments_create '{}' --json google-apps-script.google_apps_script_projects_deployments_update
Projects Deployments Update (PUT /v1/projects/{scriptId}/deployments/{deploymentId}).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_update '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_deployments_update '{}' --json google-apps-script.google_apps_script_projects_deployments_list
Projects Deployments List (GET /v1/projects/{scriptId}/deployments).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_list '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_deployments_list '{}' --json google-apps-script.google_apps_script_projects_deployments_get
Projects Deployments Get (GET /v1/projects/{scriptId}/deployments/{deploymentId}).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_get '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_deployments_get '{}' --json google-apps-script.google_apps_script_projects_versions_create
Projects Versions Create (POST /v1/projects/{scriptId}/versions).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_create '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_versions_create '{}' --json google-apps-script.google_apps_script_projects_versions_list
Projects Versions List (GET /v1/projects/{scriptId}/versions).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_list '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_versions_list '{}' --json google-apps-script.google_apps_script_projects_versions_get
Projects Versions Get (GET /v1/projects/{scriptId}/versions/{versionNumber}).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_get '{}' --json kosmo integrations:google-apps-script google_apps_script_projects_versions_get '{}' --json google-apps-script.google_apps_script_processes_list_script_processes
Processes List Script Processes (GET /v1/processes:listScriptProcesses).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_processes_list_script_processes '{}' --json kosmo integrations:google-apps-script google_apps_script_processes_list_script_processes '{}' --json google-apps-script.google_apps_script_processes_list
Processes List (GET /v1/processes).
read - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_processes_list '{}' --json kosmo integrations:google-apps-script google_apps_script_processes_list '{}' --json google-apps-script.google_apps_script_scripts_run
Scripts Run (POST /v1/scripts/{scriptId}:run).
write - Parameters
- none
kosmo integrations:call google-apps-script.google_apps_script_scripts_run '{}' --json kosmo integrations:google-apps-script google_apps_script_scripts_run '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
google-apps-script.google_apps_script_projects_get_content 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_get_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_get 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_create 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_update_content 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_update_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_get_metrics 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_get_metrics --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_deployments_delete 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_deployments_create 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_deployments_update 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_update --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_deployments_list 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_deployments_get 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_versions_create 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_versions_list 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_projects_versions_get 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_processes_list_script_processes 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_processes_list_script_processes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_processes_list 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_processes_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
google-apps-script.google_apps_script_scripts_run 0 parameters
kosmo integrations:schema google-apps-script.google_apps_script_scripts_run --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.