write_config
Save discovered project configuration by writing or updating the Grafema config file, with input validation and automatic directory creation.
Instructions
Write or update the Grafema configuration file (.grafema/config.yaml). Validates all inputs before writing. Creates .grafema/ directory if needed.
Use this tool after studying the project to save the discovered configuration. Only include fields you want to override — defaults are used for omitted fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| services | No | Service definitions (leave empty to use auto-discovery) | |
| plugins | No | Plugin configuration (omit to use defaults) | |
| include | No | Glob patterns for files to include (e.g., ["src/**/*.ts"]) | |
| exclude | No | Glob patterns for files to exclude (e.g., ["**/*.test.ts"]) | |
| workspace | No | Multi-root workspace config (only for workspaces) |