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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newText | Yes | ||
| oldText | Yes | ||
| projectId | Yes | ||
| expectedDocId | Yes | ||
| expectedVersion | Yes |