Update insert_content tool description for clarity and detail (#2892)

This commit is contained in:
Hannes Rudolph 2025-04-23 15:43:36 -06:00 committed by GitHub
parent 41db2cad43
commit c228e638b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 12 deletions

View file

@ -180,7 +180,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -647,7 +647,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -1114,7 +1114,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -1581,7 +1581,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -2104,7 +2104,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -2639,7 +2639,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -3252,7 +3252,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -3719,7 +3719,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -4228,7 +4228,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -4772,7 +4772,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path
@ -5605,7 +5605,7 @@ Example: Requesting to write to frontend-config.json
</write_to_file>
## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory /test/path

View file

@ -2,7 +2,7 @@ import { ToolArgs } from "./types"
export function getInsertContentDescription(args: ToolArgs): string {
return `## insert_content
Description: Insert new content at a specific line position in a file.
Description: Use this tool specifically for adding new lines of content into a file without modifying existing content. Specify the line number to insert before, or use line 0 to append to the end. Ideal for adding imports, functions, configuration blocks, log entries, or any multi-line text block.
Parameters:
- path: (required) File path relative to workspace directory ${args.cwd.toPosix()}