Update Script Content
update_script_contentUpdate or create files in a script project by merging into existing files or replacing the full project when merge is disabled.
Instructions
Update or create files in a script project.
By default this merges the supplied files into the existing project by file
name, leaving other files untouched. Set merge=False to replace the entire
project: 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>",
"script_id": "<script_id>",
"files": "<files>"
},
"name": "update_script_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File objects with name, type, and source to create or update | |
| merge | No | When True (default), overlay these files onto the current project. When False, replace the full project file set; omitted files are deleted. | |
| script_id | Yes | The script project ID | |
| user_google_email | Yes | User's email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |