create_version
Freeze the current code of an Apps Script project into a new immutable version for deployment. Use to create a snapshot that can be pinned to a deployment.
Instructions
Create a new immutable version snapshot of an Apps Script project.
Side effects: freezes the current code into a new versionNumber. Versions cannot be edited or deleted. A deployment can then be pinned to this version via manage_deployment. To list versions use list_versions. Requires the full script.projects OAuth scope.
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": {
"user_google_email": "<user_google_email>",
"script_id": "<script_id>"
},
"name": "create_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| script_id | Yes | Target project ID. | |
| description | No | Optional version note (e.g. release notes, ticket number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |