KosmoKrator

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, configure, and verify
# 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.

Generic CLI call
kosmo integrations:call google-apps-script.google_apps_script_projects_get_content '{}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_get_content '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_get '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_create '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_update_content '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_get_metrics '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_delete '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_create '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_update '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_list '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_deployments_get '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_create '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_list '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_projects_versions_get '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_processes_list_script_processes '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_processes_list '{}' --json
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call google-apps-script.google_apps_script_scripts_run '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_get_content --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_get 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_get --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_create 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_create --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_update_content 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_update_content --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_get_metrics 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_get_metrics --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_deployments_delete 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_delete --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_deployments_create 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_create --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_deployments_update 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_update --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_deployments_list 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_list --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_deployments_get 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_deployments_get --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_versions_create 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_create --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_versions_list 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_list --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_projects_versions_get 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_projects_versions_get --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_processes_list_script_processes 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_processes_list_script_processes --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_processes_list 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_processes_list --json
ParameterTypeRequiredDescription
No parameters.
google-apps-script.google_apps_script_scripts_run 0 parameters
Schema command
kosmo integrations:schema google-apps-script.google_apps_script_scripts_run --json
ParameterTypeRequiredDescription
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.