insert_line_or_paragraph_near_text
Insert a line or paragraph before or after a target text in a document. Specify the text to find, the line to add, and the position relative to the found text.
Instructions
Insert a line/paragraph near the found text
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": {
"doc_id": "<doc_id>"
},
"name": "insert_line_or_paragraph_near_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| target_text | No | ||
| line_text | No | ||
| position | No | after | |
| target_paragraph_index | No |