Create a version
create_versionCreate an immutable snapshot of the project's current code as a new version, returning its version number, description, and creation time. Use this to record a release candidate before deploying.
Instructions
Snapshots the project's current HEAD content as a new immutable version and returns it (versionNumber, description, createTime). Versions cannot be edited or deleted, and version numbers only grow — every call creates a NEW version, so do not re-send after an ambiguous failure without checking list_versions first. Creating a version does not change what runs anywhere: point a deployment at the new versionNumber via manage_deployments (action=create or update) to ship it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | The script project id — from the Apps Script editor URL (script.google.com/home/projects/<scriptId>/edit) or from create_project output. For standalone projects it doubles as the Drive file id. | |
| description | No | Human-readable changelog line for this version (shown in the editor's version list). |