Manage Script Content
manage_script_contentCreates, updates, or replaces Apps Script project source files. Overlay specific files by name and type to preserve the rest, or replace the full file set when omitted files should be deleted.
Instructions
Update the source files of an Apps Script project.
Actions:
- "update": Create or update files. By default (merge=True) the supplied
files are overlaid onto the project by (name, type), leaving other
files untouched. Set merge=False to replace the full project file set;
any existing file omitted from files is permanently deleted.
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": {
"user_google_email": "<user_google_email>",
"action": "<action>",
"script_id": "<script_id>"
},
"name": "manage_script_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File objects with name, type, and source to create or update (required for update). | |
| merge | No | When True (default), overlay `files` onto the current project. When False, replace the full project file set (update only). | |
| action | Yes | "update". | |
| script_id | Yes | The script project ID. | |
| user_google_email | Yes | User's email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |