prepend_to_file_code
Prepend content to the beginning of a file, allowing you to insert headers, imports, or new data at the top without altering existing content.
Instructions
Prepend content to the beginning of a file
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": {
"path": "<path>",
"content": "<content>"
},
"name": "prepend_to_file_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to the file to modify | |
| content | Yes | The content to prepend |