run_discovery_scan
Triggers a ServiceNow Discovery scan for network or infrastructure from a schedule ID, optionally targeting a MID server or running asynchronously to avoid blocking.
Instructions
[Write] Trigger a ServiceNow Discovery scan for network/infrastructure
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": {
"schedule_id": "<schedule_id>"
},
"name": "run_discovery_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run as a background job and return a job_id at once. Poll it with get_job. Calls that take longer than about 20 seconds switch to a job on their own. | |
| mid_server | No | Optional MID server name | |
| schedule_id | Yes | Discovery schedule sys_id to run |