sn_code
Search, list, read, and trace ServiceNow automation artefacts—scripts, dictionary entries, and references—to find where names are used across code or schema.
Instructions
Find the instance's own automation. action=search (scripts mentioning a string), action=list (artefacts of a kind), action=read (one artefact), action=where_used (every reference to a name; scope='code' searches only the scripts, scope='schema' only the dictionary, empty searches both).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sn_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| text | No | ||
| limit | No | ||
| scope | No | ||
| table | No | ||
| action | No | search | |
| sys_id | No | ||
| artefact | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||