Find text
find_textSearch Office documents for case-insensitive text, returning precise locations such as paragraph, slide, or cell addresses with context snippets to pinpoint each hit.
Instructions
Case-insensitive substring search over every text-bearing part the digest covers, returning the best address this build can give for each hit: paragraph id or index and hash for docx, slide id for pptx, sheet and cell for xlsx. On pptx, real slides (in presentation order) are visited before slide layouts, masters and notes masters, so the default page surfaces slide content first. Each match's text is a bounded window around the hit, not the whole run — text_length and match_offset locate it in the full run, and text_truncated says whether it was cut; a large result set can also stop early on total response size, reported the same way as max_results paging: truncated=True. Results come from the session's working copy as opened; verify is what reports on the file currently on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | ||
| query | Yes | ||
| session_id | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | ||
| query | Yes | ||
| matches | Yes | ||
| truncated | Yes | ||
| session_id | Yes | ||
| baseline_digest | Yes | The canonical digest of this document AS IT WAS WHEN THE SESSION WAS OPENED, and of the working copy these results were read from — not an attestation about the file on disk right now. Call `verify` or `digest` for that. | |
| document_may_have_changed_since_open | Yes | True when the document FILE on disk no longer has the size and modification time it had when this session last touched it — so these results may describe a version that no longer exists. It reports writes from OUTSIDE this session: this server re-records both values after each of its own edits, so applying an edit here does not set it. A HINT, not a verification: it is also true after a save that changed nothing, and a rewrite that preserved both would not set it. Call `verify` for an answer about the file as it stands. |