mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-16 21:45:14 +00:00
Add XML code block formatting to usage examples
Wrapped <replace_in_file> usage examples in XML code blocks for improved readability and clarity in the documentation.
This commit is contained in:
parent
2f185d919c
commit
7d0f9b6275
@ -264,12 +264,14 @@ Parameters:
|
|||||||
* To delete code: Use empty REPLACE section
|
* To delete code: Use empty REPLACE section
|
||||||
5. IMPORTANT: There must be EXACTLY ONE ======= separator between <<<<<<< SEARCH and >>>>>>> REPLACE
|
5. IMPORTANT: There must be EXACTLY ONE ======= separator between <<<<<<< SEARCH and >>>>>>> REPLACE
|
||||||
Usage:
|
Usage:
|
||||||
|
```xml
|
||||||
<replace_in_file>
|
<replace_in_file>
|
||||||
<path>File path here</path>
|
<path>File path here</path>
|
||||||
<diff>
|
<diff>
|
||||||
Search and replace blocks here
|
Search and replace blocks here
|
||||||
</diff>
|
</diff>
|
||||||
</replace_in_file>
|
</replace_in_file>
|
||||||
|
```
|
||||||
|
|
||||||
## preview_markdown
|
## preview_markdown
|
||||||
Description: Request to preview a Markdown file by converting it to HTML and opening it in the default web browser. This tool is useful for reviewing the rendered output of Markdown files.
|
Description: Request to preview a Markdown file by converting it to HTML and opening it in the default web browser. This tool is useful for reviewing the rendered output of Markdown files.
|
||||||
@ -373,6 +375,7 @@ Usage:
|
|||||||
|
|
||||||
## Example 3: Requesting to make targeted edits to a file
|
## Example 3: Requesting to make targeted edits to a file
|
||||||
|
|
||||||
|
```xml
|
||||||
<replace_in_file>
|
<replace_in_file>
|
||||||
<path>src/components/App.tsx</path>
|
<path>src/components/App.tsx</path>
|
||||||
<diff>
|
<diff>
|
||||||
@ -405,6 +408,7 @@ return (
|
|||||||
>>>>>>> REPLACE
|
>>>>>>> REPLACE
|
||||||
</diff>
|
</diff>
|
||||||
</replace_in_file>
|
</replace_in_file>
|
||||||
|
```
|
||||||
|
|
||||||
## Example 4: Requesting to use an MCP tool
|
## Example 4: Requesting to use an MCP tool
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user