Validate Workflow
validate_workflowRuns Workflow Editor validation on a workflow version (default: draft if present, else published) and returns the report without publishing or changing the workflow.
Instructions
Run the Workflow Editor's Validate Workflow on a version (by default your draft if you have one, else the published version) and return its report, without publishing anything. The platform saves the report over that version's previous one; the workflow itself is unchanged.
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": {
"workflow": "<workflow>"
},
"name": "validate_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Which version: current (default: your draft if you have one, else the published one), published, or draft. Ignored when workflow is a version sys_id. | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| workflow | Yes | The workflow's name or sys_id, or a workflow version sys_id. |