Manage Script Content
manage_script_contentCreate or update Apps Script project source files, overlaying changes by file name and type or replacing the full file set and permanently deleting omitted files.
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 |