get_portal_component_code
Fetch complete source code for ServiceNow portal components (widgets, providers, service instances) by table and sys_id, with optional fields: template, script, client_script, and CSS.
Instructions
Fetch widget/provider/SI fields. Returns full body by default. Never chunk for analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| fields | No | ||
| sys_id | Yes | ||
| script_offset | No | Rare: only when fetch_complete=False. Leave 0 for normal use. | |
| fetch_complete | No | Default True: full body in one call. False only for >12KB single-field reads. | |
| script_max_length | No | Rare: chunk size when fetch_complete=False. Leave default unless field >12KB. |