sync_workspace_rules
Generates AGENTS.md, .cursorrules, or CLAUDE.md from stored MindGate memories, conventions, and session handoffs. Writes are atomic, existing files are backed up, and hand-written files are protected unless forced.
Instructions
Generate a structured Markdown rules file (AGENTS.md, .cursorrules, or CLAUDE.md) from stored MindGate memories, conventions, preferences, and latest session handoff. Writes are atomic; existing files are backed up to .bak- and hand-written files are never overwritten unless force=true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_workspace_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow overwriting an existing target file that MindGate did not generate (e.g. a hand-written AGENTS.md). A timestamped .bak backup is always created before overwriting. Default false. | |
| workspace | No | Project workspace identifier. | |
| project_dir | No | Optional absolute path to the project directory where the rules file should be written. If omitted, returns the generated Markdown without writing to disk. | |
| target_file | No | Target filename to write inside project_dir (default: 'AGENTS.md'). | |
| include_global | No | Whether to include global developer preferences and memories (default true). |