sn_codesearch
Search ServiceNow code artifacts across business rules, script includes, UI scripts, client scripts, and REST operations by keyword to retrieve matching records with code snippets.
Instructions
Search across ServiceNow code artifacts — business rules, script includes, UI scripts, client scripts, and scripted REST operations. Returns matching records with code snippets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | Specific field to search (default: script) | |
| limit | No | Max total results (default 20) | |
| table | No | Search a specific table only (default: searches all code tables). Options: sys_script, sys_script_include, sys_ui_script, sys_script_client, sys_ws_operation | |
| search_term | Yes | Text to search for in script fields |