create_portal_widget
Create custom Service Portal widgets with HTML templates, CSS styling, and client/server scripts to extend ServiceNow portal functionality.
Instructions
Create a new Service Portal widget with template, CSS, and scripts (requires WRITE_ENABLED=true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable widget name | |
| id | Yes | Unique widget ID/handle (e.g. "my-custom-widget") | |
| template | No | Angular HTML template | |
| css | No | SCSS/CSS styles | |
| client_script | No | Client-side controller JavaScript | |
| server_script | No | Server-side script (GlideRecord calls) | |
| option_schema | No | JSON array defining widget options | |
| demo_data | No | JSON object with demo data for preview |