update_project_section
Modify or update a specific section in a project’s main.md file without altering other parts. Use for targeted edits, error fixes, or adding new configurations, ensuring document structure and integrity are preserved.
Instructions
Update a specific section within the project main.md file efficiently.
When to use this tool:
- Modifying a single section without affecting others
- Adding new configuration or guidelines to existing section
- Fixing errors in specific sections
- Updating outdated information in targeted areas
- Making incremental improvements
Key features:
- Preserves all other sections intact (non-destructive)
- More efficient than full file replacement
- Maintains document structure
- Atomic section-level updates
You should:
- Identify the exact section header including "## " prefix
- Read the current section content first if needed
- Preserve section formatting conventions
- Use this instead of update_project_main for small changes
- Verify section exists before attempting update
- Keep section content focused and relevant
- Consider impact on related sections
DO NOT use when:
- Section doesn't exist (use add_project_section)
- Need to update multiple sections (batch operations)
- Restructuring entire document
Section header must match exactly (e.g., "## Installation") Returns: {success: bool, message?: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
new_content | Yes | The new content for this section (without the header) | |
project_id | Yes | The project identifier | |
section_header | Yes | The exact section header to update (e.g., "## Installation") |