get_portal_component_code
Fetch ServiceNow portal component code fields, including widget, provider, and script include bodies, in one call so you can analyze complete code without chunking.
Instructions
Fetch widget/provider/SI fields. Returns full body by default. Never chunk for analysis.
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": {
"table": "<table>",
"sys_id": "<sys_id>"
},
"name": "get_portal_component_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| fields | No | Specific code fields to fetch | |
| 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. |