get_version
Retrieve metadata for a specific version of a Google Apps Script project, including its description and creation time.
Instructions
Fetch metadata for a specific immutable version of a Google Apps Script project.
A "version" in Apps Script is a snapshot of script code taken at a point
in time — versions are referenced by deployments and cannot be edited
after creation. Use this to inspect the description/create-time of one
known version. For the full list of versions on a project, use
list_versions. To create a new version from the current code, use
create_version. To inspect deployments that point to versions, use
list_deployments.
Requires OAuth scope:
https://www.googleapis.com/auth/script.projects.readonly (read-only)
or the broader script.projects scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | User's email address. Required. | |
| script_id | Yes | The Apps Script project ID — the string after `/d/` in the `script.google.com/home/projects/<id>` URL, or the `scriptId` field returned by `create_script_project` / `list_script_projects`. | |
| version_number | Yes | The 1-indexed integer version number to retrieve (1 for the first version, 2 for the second, etc.). Must refer to an already-created version; requesting a non-existent number raises a `404 Not Found` handled by the error decorator. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |