replace_text
Replace one exact text occurrence in a LaTeX file while preserving surrounding content, using a recent document ID and version to prevent stale edits.
Instructions
Replace exactly one occurrence of oldText in a file, preserving surrounding content. Requires a recent document ID and version. Reports confirmed application separately from final-content verification.
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": {
"projectId": "<projectId>",
"path": "<path>",
"expectedDocId": "<expectedDocId>",
"expectedVersion": "<expectedVersion>",
"oldText": "<oldText>",
"newText": "<newText>"
},
"name": "replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newText | Yes | ||
| oldText | Yes | ||
| projectId | Yes | ||
| expectedDocId | Yes | ||
| expectedVersion | Yes |