Manage Script Content
manage_script_contentUpdates Apps Script project source files by creating or modifying file content, with options to merge changes or replace the full file set.
Instructions
Update the source files of 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": {
"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 |