update_script_file
Update a specific file's content in a Google Apps Script project, preserving all other files.
Instructions
Update an existing file in an Apps Script project while preserving all other files
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>",
"content": "<content>"
},
"name": "update_script_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New content for the file | |
| file_name | Yes | Name of the existing file to update | |
| script_id | Yes | Apps Script project ID |