publish_flow
Publish a draft flow or subflow by compiling and activating it through ServiceNow's FlowAPI, moving it from draft to live. Use it to deploy flows once design is complete.
Instructions
Publish a draft flow or subflow (compiles and activates it via sn_fd.FlowAPI.publish; needs SCRIPTING_ENABLED). [Write]
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": {
"flow_sys_id": "<flow_sys_id>"
},
"name": "publish_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type: flow or subflow (default flow) | |
| flow_sys_id | Yes | Flow or subflow sys_id to publish |