update_widget
Build a PATCH payload to update specific sections of a ServiceNow widget. Provide the widget sys_id and only the sections you want to change.
Instructions
Build a PATCH payload to update specific sections of an existing widget.
Provide the widget sys_id and only the sections you want to change. Returns a PATCH payload ready to send to /api/now/table/sp_widget/{sys_id}.
Updatable sections: template, css, client_script, server_script, option_schema, demo_data
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": {
"widget_sys_id": "<widget_sys_id>",
"sections": "<sections>"
},
"name": "update_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_sys_id | Yes | sys_id of the widget to update | |
| sections | Yes | Only include the sections you want to change |