paste_code
Paste code at a chosen line in a target file, with optional backup creation to protect existing content.
Instructions
Paste code at specific line in target file.
Args: target_file: Path to target file line_number: Line number to paste at (1-based, inserts before this line) code: Code content to paste create_backup: Whether to create backup file before modification
Returns: Success message with details
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_file": "<target_file>",
"line_number": "<line_number>",
"code": "<code>"
},
"name": "paste_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| line_number | Yes | ||
| target_file | Yes | ||
| create_backup | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |