smart_fix_script
Diagnose Apps Script errors, generate instructions, and apply patches automatically to fix script issues.
Instructions
Integrated diagnosis → instruction generation → patch workflow for automatic script fixing - 99% output reduction
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": {
"script_id": "<script_id>",
"error_message": "<error_message>"
},
"name": "smart_fix_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | Apps Script project ID | |
| auto_apply | No | Automatically apply patch if generated (default: false) | |
| error_message | Yes | Error message from Apps Script | |
| suspected_file | No | Suspected problem file name (optional) |