update_existing_rules
Update existing rule files by appending content, replacing sections, or inserting new content after specified text.
Instructions
更新现有的规则文件内容
Args: file_path: 要更新的规则文件路径 updates: 更新内容的字典,支持以下键: - append_content: 要追加的内容 - replace_section: 要替换的章节 {"section_name": "new_content"} - insert_after: 在指定内容后插入 {"after": "content", "insert": "new_content"}
Returns: 更新操作的结果信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| updates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |