get_script_file_contents
Retrieve the source code of any file in your Google Apps Script project by specifying the script ID and file name, with optional line numbers.
Instructions
Get the contents of a specific file from an Apps 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": "get_script_file_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Name of the file to get contents from | |
| script_id | Yes | Apps Script project ID | |
| include_line_numbers | No | Include line numbers in output (default: true) |