Get a version
get_versionRetrieve immutable version metadata—version number, description, and creation time—for a Google Apps Script project by specifying script ID and version number. This returns metadata only, not code.
Instructions
Fetches one immutable version by its number: versionNumber, description and createTime. For the code of that version call get_project_content with version_number instead — this endpoint returns metadata only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script_id": "<script_id>",
"version_number": "<version_number>"
},
"name": "get_version"
}
}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. | |
| version_number | Yes | The version number from create_version or list_versions. |