Skip to content

Commit 3f0894d

Browse files
committed
Revert "tweaked formatting of sections within files."
This reverts commit e932fb4.
1 parent dcd3921 commit 3f0894d

File tree

304 files changed

+296
-2796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+296
-2796
lines changed

docs/advanced-usage/available-tools/access-mcp-resource.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,24 @@
22

33
The `access_mcp_resource` tool retrieves data from resources exposed by connected Model Context Protocol (MCP) servers. It allows Roo to access files, API responses, documentation, or system information that provides additional context for tasks.
44

5-
---
6-
75
## Parameters
86

97
The tool accepts these parameters:
108

119
- `server_name` (required): The name of the MCP server providing the resource
1210
- `uri` (required): The URI identifying the specific resource to access
1311

14-
---
15-
1612
## What It Does
1713

1814
This tool connects to MCP servers and fetches data from their exposed resources. Unlike `use_mcp_tool` which executes actions, this tool specifically retrieves information that serves as context for tasks.
1915

20-
---
21-
2216
## When is it used?
2317

2418
- When Roo needs additional context from external systems
2519
- When Roo needs to access domain-specific data from specialized MCP servers
2620
- When Roo needs to retrieve reference documentation hosted by MCP servers
2721
- When Roo needs to integrate real-time data from external APIs via MCP
2822

29-
---
30-
3123
## Key Features
3224

3325
- Retrieves both text and image data from MCP resources
@@ -41,8 +33,6 @@ This tool connects to MCP servers and fetches data from their exposed resources.
4133
- Processes structured response data with metadata
4234
- Handles image content special rendering
4335

44-
---
45-
4636
## Limitations
4737

4838
- Depends on external MCP servers being available and connected
@@ -53,8 +43,6 @@ This tool connects to MCP servers and fetches data from their exposed resources.
5343
- URI formats are determined by the specific MCP server implementation
5444
- No offline or cached resource access capabilities
5545

56-
---
57-
5846
## How It Works
5947

6048
When the `access_mcp_resource` tool is invoked, it follows this process:
@@ -80,8 +68,6 @@ When the `access_mcp_resource` tool is invoked, it follows this process:
8068
- Handles image data specially for appropriate display
8169
- Returns the processed resource data to Roo for use in the current task
8270

83-
---
84-
8571
## Resource Types
8672

8773
MCP servers can provide two main types of resources:
@@ -98,17 +84,13 @@ MCP servers can provide two main types of resources:
9884
- Can represent queries or filtered views of data
9985
- More flexible but require additional URI formatting
10086

101-
---
102-
10387
## Examples When Used
10488

10589
- When helping with API development, Roo retrieves endpoint specifications from MCP resources to ensure correct implementation.
10690
- When assisting with data visualization, Roo accesses current data samples from connected MCP servers.
10791
- When working in specialized domains, Roo retrieves technical documentation to provide accurate guidance.
10892
- When generating industry-specific code, Roo references compliance requirements from documentation resources.
10993

110-
---
111-
11294
## Usage Examples
11395

11496
Accessing current weather data:

docs/advanced-usage/available-tools/apply-diff.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
The `apply_diff` tool makes precise, surgical changes to files by specifying exactly what content to replace. It uses a sophisticated strategy for finding and applying changes while maintaining proper code formatting and structure.
44

5-
---
6-
75
## Parameters
86

97
The tool accepts these parameters:
@@ -13,23 +11,17 @@ The tool accepts these parameters:
1311
- `start_line` (optional): A hint for where the search content begins. _Note: This top-level parameter appears unused by the current main strategy, which relies on `:start_line:` within the diff content._
1412
- `end_line` (optional): A hint for where the search content ends. _Note: This top-level parameter appears unused by the current main strategy._
1513

16-
---
17-
1814
## What It Does
1915

2016
This tool applies targeted changes to existing files using fuzzy matching guided by line number hints to locate and replace content precisely. Unlike simple search and replace, it identifies the exact block for replacement based on the provided content and location hints.
2117

22-
---
23-
2418
## When is it used?
2519

2620
- When Roo needs to make precise changes to existing code without rewriting entire files.
2721
- When refactoring specific sections of code while maintaining surrounding context.
2822
- When fixing bugs in existing code with surgical precision.
2923
- When implementing feature enhancements that modify only certain parts of a file.
3024

31-
---
32-
3325
## Key Features
3426

3527
- Uses fuzzy matching (Levenshtein distance on normalized strings) guided by a `:start_line:` hint, with configurable confidence thresholds (typically 0.8-1.0).
@@ -41,8 +33,6 @@ This tool applies targeted changes to existing files using fuzzy matching guided
4133
- Validates file access against `.rooignore` rules.
4234
- Handles multi-line edits effectively.
4335

44-
---
45-
4636
## Limitations
4737

4838
- Works best with unique, distinctive code sections for reliable identification.
@@ -51,8 +41,6 @@ This tool applies targeted changes to existing files using fuzzy matching guided
5141
- Each diff strategy has specific format requirements.
5242
- Complex edits might require careful strategy selection or manual review.
5343

54-
---
55-
5644
## How It Works
5745

5846
When the `apply_diff` tool is invoked, it follows this process:
@@ -70,8 +58,6 @@ When the `apply_diff` tool is invoked, it follows this process:
7058
8. **Error Handling**: If errors occur (e.g., match failure, partial application), increments the `consecutiveMistakeCountForApplyDiff` for the file and reports the failure type.
7159
9. **Feedback**: Returns the result, including any user feedback or error details.
7260

73-
---
74-
7561
## Diff Format Requirements
7662

7763
The `<diff>` parameter requires a specific format supporting one or more changes in a single request. Each change block requires a line number hint for the original content.

docs/advanced-usage/available-tools/ask-followup-question.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@
22

33
The `ask_followup_question` tool enables interactive communication by asking specific questions to gather additional information needed to complete tasks effectively.
44

5-
---
6-
75
## Parameters
86

97
The tool accepts these parameters:
108

119
- `question` (required): The specific question to ask the user
1210
- `follow_up` (optional): A list of 2-4 suggested answers that help guide user responses, each within `<suggest>` tags
1311

14-
---
15-
1612
## What It Does
1713

1814
This tool creates a conversational interface between Roo and the user, allowing for gathering clarification, additional details, or user preferences when facing ambiguities or decision points. Each question can include suggested responses to streamline the interaction.
1915

20-
---
21-
2216
## When is it used?
2317

2418
- When critical information is missing from the original request
@@ -27,8 +21,6 @@ This tool creates a conversational interface between Roo and the user, allowing
2721
- When Roo encounters ambiguities that need resolution
2822
- When additional context would significantly improve the solution quality
2923

30-
---
31-
3224
## Key Features
3325

3426
- Provides a structured way to gather specific information without breaking workflow
@@ -40,8 +32,6 @@ This tool creates a conversational interface between Roo and the user, allowing
4032
- Formats responses with `<answer>` tags to distinguish them from regular conversation
4133
- Resets consecutive error counter when used successfully
4234

43-
---
44-
4535
## Limitations
4636

4737
- Limited to asking one specific question per tool use
@@ -52,8 +42,6 @@ This tool creates a conversational interface between Roo and the user, allowing
5242
- No built-in validation for user responses
5343
- Contains no mechanism to enforce specific answer formats
5444

55-
---
56-
5745
## How It Works
5846

5947
When the `ask_followup_question` tool is invoked, it follows this process:
@@ -96,8 +84,6 @@ When the `ask_followup_question` tool is invoked, it follows this process:
9684
- Contains safeguards to prevent tool execution when required parameters are missing
9785
- Increments consecutive mistake count when errors occur
9886

99-
---
100-
10187
## Workflow Sequence
10288

10389
The question-answer cycle follows this sequence:
@@ -116,8 +102,6 @@ The question-answer cycle follows this sequence:
116102
9. **Context Integration**: Response is added to the conversation history
117103
10. **Task Continuation**: Roo proceeds with the task using the new information
118104

119-
---
120-
121105
## Examples When Used
122106

123107
- When developing a web application, Roo might ask about preferred styling frameworks (Bootstrap, Tailwind, custom CSS)
@@ -127,8 +111,6 @@ The question-answer cycle follows this sequence:
127111
- When creating a custom feature, Roo might ask about specific behavior expectations
128112
- When troubleshooting errors, Roo might ask about specific environment details
129113

130-
---
131-
132114
## Response Format
133115

134116
When a user responds to a question, the response is formatted with `<answer>` tags for clarity and consistency. This format helps clearly separate the user's answer from other conversation elements.
@@ -146,8 +128,6 @@ Key characteristics of the response format:
146128
- Maintains images if included in the response
147129
- Returns the complete text, even for long responses
148130

149-
---
150-
151131
## Usage Examples
152132

153133
Asking about implementation preferences:

docs/advanced-usage/available-tools/attempt-completion.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@
22

33
The `attempt_completion` tool signals that Roo believes a task is complete and presents results to the user. It provides a summary of what was accomplished, optionally includes a command to demonstrate the result, and supports continued refinement through user feedback.
44

5-
---
6-
75
## Parameters
86

97
The tool accepts these parameters:
108

119
- `result` (required): The final result description summarizing what was accomplished
1210
- `command` (optional): A CLI command to execute to demonstrate the result
1311

14-
---
15-
1612
## What It Does
1713

1814
This tool marks the end of a task by presenting a final summary of what was accomplished. It signals to both the user and the system that the current task is complete. When a command is provided, it can also demonstrate the result through a live execution.
1915

20-
---
21-
2216
## When is it used?
2317

2418
- When Roo believes the user's task has been completed
@@ -27,8 +21,6 @@ This tool marks the end of a task by presenting a final summary of what was acco
2721
- When providing a checkpoint for user feedback on the solution
2822
- When transitioning from one phase of work to potential refinements
2923

30-
---
31-
3224
## Key Features
3325

3426
- Provides a clear signal that Roo believes the task is complete
@@ -42,8 +34,6 @@ This tool marks the end of a task by presenting a final summary of what was acco
4234
- Ensures users receive a clear summary of what was done
4335
- Available in all modes as part of the "always available" tool group
4436

45-
---
46-
4737
## Limitations
4838

4939
- Should not be used until previous tool uses are confirmed successful (guideline, not enforced)
@@ -54,8 +44,6 @@ This tool marks the end of a task by presenting a final summary of what was acco
5444
- Cannot be used for partial task completion or progress updates
5545
- Result formatting strips XML closing tags through internal processing
5646

57-
---
58-
5947
## How It Works
6048

6149
When the `attempt_completion` tool is invoked, it follows this process:
@@ -90,8 +78,6 @@ When the `attempt_completion` tool is invoked, it follows this process:
9078
- Tool results are parsed through the system's parsing mechanism in `parse-assistant-message.ts`
9179
- The tool is part of the "ALWAYS_AVAILABLE_TOOLS" constant, making it available in all modes
9280

93-
---
94-
9581
## Result Formatting Guidelines
9682

9783
The result message should follow these guidelines:
@@ -106,8 +92,6 @@ The result message should follow these guidelines:
10692

10793
Note: The system automatically strips XML closing tags from the result text through the `removeClosingTag` function.
10894

109-
---
110-
11195
## Command Selection Guidelines
11296

11397
When including a command, follow these guidelines:
@@ -122,8 +106,6 @@ When including a command, follow these guidelines:
122106
- Remember that commands require user approval before execution
123107
- Ensure the command is valid for the user's operating system
124108

125-
---
126-
127109
## Feedback and UI Representation
128110

129111
The `attempt_completion` tool has a unique feedback mechanism:
@@ -141,8 +123,6 @@ When used within subtasks:
141123
- The parent task resumes with context from the completed subtask
142124
- This enables complex, nested workflows while maintaining context
143125

144-
---
145-
146126
## Examples When Used
147127

148128
- When creating a website, Roo presents the solution and uses `open index.html` to show the result. The user provides feedback, and Roo refines the design.
@@ -151,8 +131,6 @@ When used within subtasks:
151131
- When setting up a development environment, Roo confirms all components are installed. The user requests additional configuration, and Roo continues.
152132
- When creating a data processing script, Roo summarizes the functionality. The user suggests performance improvements, and Roo optimizes the code.
153133

154-
---
155-
156134
## Usage Examples
157135

158136

0 commit comments

Comments
 (0)