list_versions
Lists all immutable version snapshots of a Google Apps Script project. Provide a script ID and user email to retrieve the complete version history in a formatted output.
Instructions
Lists all versions of a script project.
Versions are immutable snapshots of your script code. They are created when you deploy or explicitly create a version.
Args: service: Injected Google API service client user_google_email: User's email address script_id: The script project ID
Returns: str: Formatted string with version list
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": "list_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |