create_version
Create an immutable snapshot of a Google Apps Script project to preserve its current code. Use this to capture a version that cannot be altered.
Instructions
Creates a new immutable version of a script project.
Versions capture a snapshot of the current script code. Once created, versions cannot be modified.
Args: service: Injected Google API service client user_google_email: User's email address script_id: The script project ID description: Optional description for this version
Returns: str: Formatted string with new version details
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 |
|---|---|---|---|
| script_id | Yes | ||
| description | No | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |