insert_content
Insert text at a chosen start, end, or character position in a document, with position validation and a preview before applying the change.
Instructions
Insert content at a specific position with validation and preview
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": {
"workspace": "<workspace>",
"documentId": "<documentId>",
"position": "<position>",
"text": "<text>"
},
"name": "insert_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to insert | |
| position | Yes | "start", "end", or character position | |
| workspace | Yes | ||
| documentId | Yes | ||
| expectedLineBefore | No | Optional: The exact line expected before the insertion point for position validation |