search_portal_regex_matches
Find regex matches in ServiceNow portal source code (widgets, providers, script includes) with offsets and context. Filter by scope, source type, and update dates.
Instructions
True regex over portal code (widget/provider/SI), offsets+context. Server-table keyword search: search_server_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | Pattern to find in source | |
| scope | No | sys_scope filter | |
| page_size | No | ||
| match_mode | No | auto | literal | regex | auto |
| updated_by | No | sys_updated_by filter | |
| widget_ids | No | Widget id/sys_id/name filter | |
| max_matches | No | ||
| max_widgets | No | ||
| output_mode | No | minimal | compact | full | |
| provider_ids | No | Angular provider sys_id/name filter (bypasses M2M) | |
| source_types | No | widget | script_include | angular_provider | |
| updated_after | No | sys_updated_on >= (YYYY-MM-DD) | |
| compact_output | No | Compact output | |
| snippet_length | No | Max snippet length per match | |
| updated_before | No | sys_updated_on <= (YYYY-MM-DD) | |
| include_widget_fields | No | Widget fields to scan | |
| include_linked_script_includes | No | ||
| include_linked_angular_providers | No | ||
| linked_components_updated_by_only | No |