script.projects.getContent
Retrieve an Apps Script project's source code and file metadata as JSON, optionally for a specific version, to inspect or back up scripts.
Instructions
Gets the content of the script project, including the code source and metadata for each script file [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: create, get, getMetrics, updateContent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| scriptId | Yes | [URL path segment] The script project's Drive ID. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| versionNumber | No | [query parameter] The version number of the project to retrieve. If not provided, the project's HEAD version is returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| scriptId | No |