List Code Search Groups
list_code_search_groupsRetrieve available code search groups on a ServiceNow instance to identify which tables and fields are included in code searches, then use group names or sys_ids for targeted searches or table additions.
Instructions
List available code search groups on a ServiceNow instance. Search groups define which tables and fields are included when performing a code search. Each instance typically has a default search group, and additional groups can be created for specific use cases.
Use the group name as the search_group parameter in code_search. Use the group sys_id when adding tables via add_code_search_table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| limit | No | Maximum number of search groups to return. Default is 100. |