List versions
list_versionsList immutable versions of an Apps Script project, newest first, with pagination. Use it to select a version for deployments or retrieve old code via version_number.
Instructions
Lists the project's immutable versions (versionNumber, description, createTime), newest first. Paginate with page_token from nextPageToken. Use it to pick a versionNumber for manage_deployments or to read old code via get_project_content with version_number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | Versions per page (1..50; API default 50). | |
| 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. | |
| page_token | No | nextPageToken from the previous page. |