script_get_file
Retrieve the complete source code of a file from a Google Apps Script project to review, analyze, or modify script content directly from conversational interfaces.
Instructions
Get the full source code of a file in the script project.
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": {
"script_id": "<script_id>",
"file_name": "<file_name>"
},
"name": "script_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| file_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |