create_or_update_rule
Create or update documentation to record patterns, decisions, and changes, ensuring future agents have current context.
Instructions
Create or update documentation as you discover new patterns, decisions, or changes. Use this to keep docs current for future agents.
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": {
"fileName": "<fileName>",
"title": "<title>",
"content": "<content>"
},
"name": "create_or_update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title for display and search | |
| topics | No | Optional topical tags to group related documents | |
| content | Yes | Full markdown content of the documentation | |
| category | No | Optional category label for this document | |
| fileName | Yes | Documentation file name. Must end with .md. Example: "api-patterns.md" | |
| keywords | No | Search keywords. Include technologies, patterns, and concepts covered | |
| alwaysApply | No | Mark this doc as always-apply guidance for every task | |
| description | No | Brief summary of the document's purpose | |
| filePatterns | No | Optional file globs for contextual docs. Examples: ["**/*.test.js"] |