update_index brings an index up to date with the files on disk — changed, added and deleted files in the paths the index covers — without re-reading everything. Example prompt: “I edited some contracts; refresh the index.”
Tool description (as the AI agent sees it):
Brings a search index up to date with the files on disk: re-reads documents that changed, adds new files that appeared inside already-indexed folders, and drops documents whose files were deleted. Call this when the user says files were edited, added or removed, asks to ‘refresh’ or ’re-index’, or before searching an index that may be stale. It only looks at paths already in the index; to index a new folder use add_to_index. Returns a short report: documents added, updated and removed, and the total now in the index. In evaluation mode new files are only added while the index holds fewer than 100 documents. On failure the response starts with ‘Index update failed for’ followed by the exception type and message, and isError is set.
Parameters
Name
Type
Required
Description
indexName
string
no
Name of the index to update, e.g. ‘contracts’. Omit to use the default index.