Pathrule Update Rule
pathrule_update_ruleUpdate a rule's name, content, scope, priority, or move its path. Uses optimistic concurrency to avoid overwriting concurrent changes.
Instructions
Update a rule's fields and/or path. Optimistic concurrency via expected_version_id. Cloud-only.
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": {
"workspace_id": "<workspace_id>",
"rule_id": "<rule_id>",
"patch": "<patch>"
},
"name": "pathrule_update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | Workspace UUID from pathrule_list_workspaces. | |
| rule_id | Yes | Rule UUID returned by pathrule_get_context, pathrule_goto, or pathrule_read_rule. | |
| expected_version_id | No | Optional optimistic-concurrency token from the existing record. Pass it when available to avoid overwriting a newer edit. | |
| patch | Yes | ||
| move_to_path | No | Optional workspace-relative destination path such as /packages/app. Missing nodes are created when allowed by the backend. | |
| allow_duplicate | No | Set true only when intentionally allowing another rule with the same name. |