update_script_content
Update Apps Script project files by sending a JSON array of file objects. Use dry run to preview changes before applying.
Instructions
Update Apps Script project files.
Args:
user_google_email: The user's Google email address. Required.
script_id: The Apps Script project ID.
files_json: JSON list of file objects (name, type, source).
dry_run: Preview content update without mutation. Defaults to True.
Returns: str: Confirmation of preview or update.
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_json": "<files_json>"
},
"name": "update_script_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| script_id | Yes | ||
| files_json | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |