Argocd Patch Application
argocd_patch_applicationPatch Argo CD applications by applying JSON merge or RFC 6902 patches to update specs, change target revisions, or disable auto-sync.
Instructions
Patch an application — the one tool for every update.
Examples: change targetRevision with patch='{"spec":{"source":{"targetRevision":"v2"}}}'; disable auto-sync with patch='{"spec":{"syncPolicy":{"automated":null}}}'.
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": {
"name": "<name>",
"patch": "<patch>"
},
"name": "argocd_patch_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name; accepts namespace/name for apps-in-any-namespace | |
| patch | Yes | JSON patch body | |
| project | No | Project; with it a missing app is 404 and a wrong-project app is 403 | |
| patch_type | No | merge (RFC 7386) or json (RFC 6902) | merge |
| app_namespace | No | Override appNamespace; defaults to ARGOCD_APP_NAMESPACE |