script_update_files
Add or replace Apps Script project files: use merge mode to keep existing files and add new ones, or replace mode to reset the project to specified files plus manifest.
Instructions
Add or replace files in an Apps Script project. Files with the same name are replaced; others are kept (mode 'merge'), or the project is reset to exactly these files plus the manifest (mode 'replace'). Use deleteFiles to remove 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": {
"scriptId": "<scriptId>"
},
"name": "script_update_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | merge | |
| files | No | ||
| manifest | No | Full appsscript.json to replace the manifest (e.g. to add oauthScopes or webapp settings) | |
| scriptId | Yes | ||
| deleteFiles | No |