Usage: <read_file> path/to/file <line_range>start-end</line_range> </read_file>
Examples:
- Reading a single file: <read_file>
- Reading an entire file: <read_file>
Example: Requesting instructions to create a Mode
<fetch_instructions> create_mode </fetch_instructions>
Usage: <search_files> Directory path here Your regex pattern here <file_pattern>file pattern here (optional)</file_pattern> </search_files>
Example: Requesting to search for all .ts files in the current directory <search_files> . . <file_pattern>.ts</file_pattern> </search_files>
Usage: <list_files> Directory path here true or false (optional) </list_files>
Example: Requesting to list all files in the current directory <list_files> . false </list_files>
Usage: <list_code_definition_names> Directory path here </list_code_definition_names>
Examples:
-
List definitions from a specific file: <list_code_definition_names> src/main.ts </list_code_definition_names>
-
List definitions from all files in a directory: <list_code_definition_names> src/ </list_code_definition_names>
Usage: <write_to_file> File path here Your file content here <line_count>total number of lines in the file, including empty lines</line_count> </write_to_file>
Example: Requesting to write to frontend-config.json <write_to_file> frontend-config.json { "apiEndpoint": "https://api.example.com", "theme": { "primaryColor": "#007bff", "secondaryColor": "#6c757d", "fontFamily": "Arial, sans-serif" }, "features": { "darkMode": true, "notifications": true, "analytics": false }, "version": "1.0.0" } <line_count>14</line_count> </write_to_file>
-
Simple text replacement: <search_and_replace> example.ts oldText newText </search_and_replace>
-
Case-insensitive regex pattern: <search_and_replace> example.ts oldw+ new$& <use_regex>true</use_regex> <ignore_case>true</ignore_case> </search_and_replace>
Usage: <execute_command> Your command here Working directory path (optional) </execute_command>
Example: Requesting to execute npm run dev <execute_command> npm run dev </execute_command>
Example: Requesting to execute ls in a specific directory if directed <execute_command> ls -la /home/user/projects </execute_command>
Usage: <ask_followup_question> Your question here <follow_up> Your suggested answer here Implement the solution </follow_up> </ask_followup_question>
Example: Requesting to ask the user for the path to the frontend-config.json file <ask_followup_question> What is the path to the frontend-config.json file? <follow_up> ./src/frontend-config.json ./config/frontend-config.json ./frontend-config.json </follow_up> </ask_followup_question>
Example: Asking a question with mode switching options <ask_followup_question> How would you like to proceed with this task? <follow_up> Start implementing the solution Plan the architecture first Continue with more details </follow_up> </ask_followup_question>
Usage: <attempt_completion> Your final result description here </attempt_completion>
Example: Requesting to attempt completion with a result <attempt_completion> I've updated the CSS </attempt_completion>
Usage: <switch_mode> <mode_slug>Mode slug here</mode_slug> Reason for switching here </switch_mode>
Example: Requesting to switch to code mode <switch_mode> <mode_slug>code</mode_slug> Need to make code changes </switch_mode>
Usage: <new_task> your-mode-slug-here Your initial instructions here </new_task>
Example: <new_task> code Implement a new feature for the application. </new_task>
Usage: <update_todo_list> Your todo list here </update_todo_list>
Example: <update_todo_list> [x] Analyze requirements [x] Design architecture [-] Implement core logic [ ] Write tests [ ] Update documentation </update_todo_list>