sn_apply_plan
Applies an approved plan to a ServiceNow record: re-reads to refuse if changed, writes exactly the planned fields, then reads back to report any fields ServiceNow stored differently.
Instructions
Write a plan made by sn_plan_change, only after the user has agreed to its changes. For an existing record it first reads the record again and refuses if anything changed since the plan was made. It sends exactly the planned fields, then reads the record back and reports any field ServiceNow stored differently, for example because a business rule changed it. If ServiceNow refuses the write, nothing changes and the plan stays unapplied with the reason kept in it. This is a write tool. It refuses to run unless the server was started with SN_ALLOW_WRITE=1 or SN_ALLOW_WRITE=plan.
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": {
"plan_id": "<plan_id>"
},
"name": "sn_apply_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | The plan_id that sn_plan_change returned. Example: 20261016-101500-1a2b3c4d. |