commit_context_patch
Applies a proposed ContextPatch as a new immutable Context version after revalidating its base, rejecting stale patches and preserving cited evidence for an atomic commit.
Instructions
Apply a proposed ContextPatch as a new Context version. The base version is revalidated first, so a patch whose base_context_version is no longer current is rejected; the commit is atomic and keeps the cited evidence. Call it only after reading the diff from propose_context_patch. Committed versions are immutable; read them with get_context_history.
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": {
"project_id": "<project_id>",
"patch_id": "<patch_id>"
},
"name": "commit_context_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch_id | Yes | Id returned by propose_context_patch, for example PATCH-0123abcd. | |
| project_id | Yes | Registered project id, as returned by list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||