search_server_code
Search ServiceNow server-side code by keyword across script includes, business rules, ACLs, and other supported types to find implementations and references.
Instructions
Fast keyword search across 22 server-side code types (SI/BR/ACL). Portal regex+snippets: search_portal_regex_matches.
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": {
"query": "<query>"
},
"name": "search_server_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Text to search in names, identifiers, and source fields | |
| scope | No | Optional scope filter | |
| updated_by | No | Optional updated_by filter | |
| source_type | No | Source type to search; 'all' covers every supported type. | all |
| max_snippet_length | No |