How AI clients use drives
How connected AI clients search drives, read, grep, and change files, and link answers to their sources.
When drives are available for your organization, AI clients on the shared MCP connection, https://link.mcpmarket.com/mcp, get tools for your files. They work in Everything and in a single toolkit, whether the client signs in or uses an API key. To set up a connection, see Connect a toolkit view.
The Drive tools
| Tool | What it does |
|---|---|
Search Drive (mcp_market_search_drive) | Finds the most relevant passages for a question of up to 500 characters. Returns up to 10 passages, 5 by default, best first |
Get file (mcp_market_get_file) | Gets one version of a file: its extracted text (a passage from a search result with surrounding text, a page range of a PDF, a section, or the whole text), its original file, or a download link |
List drives (mcp_market_list_drives) | Lists the drives the connection reaches, with their descriptions, file and folder counts, and what the connection may do in each: search, open files, or change them |
Each search result has a short excerpt (up to 2 KB), the file's title, its page and section references, and a source link. The client can share the excerpt and link as a citation without reading the whole file.
Only PDFs have pages. A Word document is read by its sections, and a slide deck by one section per slide, such as Slide 2: Risks, with that slide's speaker notes.
Reads return up to 16 KB at a time. For longer text, the client continues with a link that expires after 30 minutes. A read always stays on the same version of the file, even if someone replaces it meanwhile.
File tools
Each Drive tool appears only when at least one drive the connection can access allows it. Search Drive needs a drive with Semantic document search on, which is on paid plans. Get file and List drives need any drive agents can use, the file tools below need a drive with File tools on, and writing needs one set to Read and write. A toolkit's Drive tools setting can also leave out file tools or Search Drive (see What a connection searches). A Toolkit with no accessible drives shows no Drive tools, even if Everything can access other drives. A drive with Semantic document search and File tools both off does not count.
These tools work in drives with File tools on, whether or not their Semantic document search is on:
| Tool | What it does |
|---|---|
List files (mcp_market_list_files) | Finds files by part of their name, by format, or by path pattern, in one drive, one of its folders, or every drive the connection reaches, sorted by name or most recently updated. Shows each file's path, latest version, newest available original, and whether its text can be read and searched |
Grep Drive (mcp_market_grep_drive) | Finds exact text across files and returns each match's location. See Find exact text |
File history (mcp_market_file_history) | Lists a file's versions or compares two of them. See Version history and merges |
Write file (mcp_market_write_file) | Saves up to 16 KB of UTF-8 text as a .txt, .md, or .csv file, or as a new version of one. It also restores an earlier version as a new version |
| Prepare file upload and Complete file upload | Upload a larger or binary file in two steps: get an upload address, send the bytes, then complete it |
Copy file (mcp_market_copy_file) | Copies one available version into a new file in a drive or one of its folders |
Move file (mcp_market_move_file) | Moves a file with all its versions to another folder or drive |
Merge file (mcp_market_merge_file) and Get merge (mcp_market_get_merge) | Combine an edit with changes someone made since the client read the file, and show any conflicts to resolve |
Grep Drive, File history, and restoring a version are available on every plan. Merging is in early access: Merge file and Get merge appear once MCP Market turns them on for your organization.
Writing, uploading, copying, moving, restoring, and merging need Read and write agent access on the destination drive. A replacement names the version it replaces, so two clients can't overwrite each other's changes. Copying or moving into another drive changes who can read the file, so the client must confirm it.
A write, upload, copy, or merge can carry an optional change note: a summary of up to 280 characters, a reason of up to 1,000, and a reference such as a ticket of up to 500. File history shows them. A reference is stored as text and never opened.
Get file returns extracted text unless the client asks for another output. The other outputs need Read files or more on the file's drive:
- Original returns the uploaded file's exact bytes, in parts of up to 16 KB. For a text, Markdown, or CSV file, it can also return one passage of up to 16 KB, such as a Grep Drive match.
- Auto returns the version's extracted text when it has some, otherwise its original. It never returns another version's text.
- Download link returns an expiring link to the original, by default for 1 hour and at most 24 hours. It needs Download links on for the drive, and anyone with the link can download the file until it expires.
A file that is still being checked has no original to return yet.
Find exact text
Grep Drive finds exact text or a pattern, not similar meaning, in drives set to Read files or more. Matching is case-sensitive unless the client asks to ignore case.
Patterns
By default the client's query is matched exactly as written, punctuation included. A client can instead ask for a regular expression to match a pattern, such as invoice|receipt (either word), INV-[0-9]+ (an invoice number), or ^TODO: (a line that starts with TODO:).
-
Patterns use the syntax of RE2, the regular expression library used by Go and Google: close to JavaScript and Python, without backreferences or lookaround.
-
Patterns match within one line at a time, and
^and$mean the start and end of a line. -
They support
., character classes such as[A-Z],[^0-9]and\p{L}(any letter),\d,\wand\s(letters and digits from the basic Latin alphabet),\bfor word boundaries, alternatives with|, groups, and repeats with*,+,?and{2,4}, greedy or lazy (*?). -
The earliest match in a line counts. When alternatives match at the same place, the first one listed wins, as in JavaScript:
INV|INV-1042findsINV. -
Backreferences, lookahead and lookbehind, patterns that could match an empty line (such as
a*), and patterns too large to run are refused with an explanation. A refused pattern is never searched as plain text. -
A pattern that is too slow for a file within one request skips that file, and the answer says so.
-
Text, Markdown, and CSV files are searched in their newest original. Each match has its line and column.
-
PDFs, Word documents, and presentations (
.pdf,.docx,.doc,.pptx,.ppt) are searched in the text already extracted from them. Each match gives its place in that extracted text: the PDF page, the section and its headings, or the slide (a slide's title, text, or speaker notes). These are not line numbers or positions in the original document. Their text must already be extracted; a file never extracted is skipped and listed with its reason.
A file is skipped when its text isn't extracted yet, its extraction failed or found no text, extraction is off, it has more than 8 MB of text, or a pattern is too slow for it. The answer lists skipped files with the reason, and its counts are exact only when every file was searched. While a newer version is being processed, the client can search the previous version's text instead, marked as stale. Grep Drive never starts processing a file and doesn't use your plan's pages.
A client can narrow a search to drives, folders, files, formats, and path patterns. Patterns start at the top of the drive and ignore case: * matches within a name, and ** any number of folders, so **/*.md finds every Markdown file. Results come as matches with up to 5 surrounding lines, as matching files, or as counts.
One call searches up to 32 MB of text or 500 files. The client continues with a link that expires after 30 minutes, and every part of one search sees the same version of each file, even if files change meanwhile. A search over more than 10,000 files is refused; narrow it first.
Version history and merges
File history lists a file's versions, newest first: who made each one, in MCP Market or through an AI client, its change note, and which version it replaced or restored. It also says how long your organization keeps earlier versions. To see what changed, it compares two versions line by line: the originals of text, Markdown, and CSV files, or the extracted text of other files when both versions have it. Versions over 2 MB or too different to compare show only their details.
To undo a change, Write file restores an earlier version as a new version, in any format and size, as long as its original is still kept. The history keeps every version in between.
When a replacement is refused because someone changed the file since the client read it, Merge file combines both edits, for text and Markdown files up to 16 KB:
- Edits separated by at least one unchanged line merge into a new version. The client should read it to check the result still makes sense.
- Edits to the same or neighboring lines are a conflict. The file stays unchanged, and Get merge shows each conflict so the client can send a resolved text. An unresolved proposal is kept for 7 days.
- When both edits add or remove the same line that already appears elsewhere in the file, such as a blank line or a repeated list item, it's also a conflict, even if both edits look identical. Merge file can't tell whether both meant the same line or two different ones, so it asks instead of keeping one copy and possibly losing an edit. Get merge marks these conflicts as ambiguous repeated lines.
- Very large or very different files can take too long to compare or merge. Comparisons then show only the versions' details, and a merge asks the client to try again later, with the file unchanged and the proposal kept.
Reading a proposal needs Read files on the file's drive; merging, resolving, or discarding it needs Read and write. Moving the file to another drive or deleting it closes its open proposals.
What a connection searches
- Everything: your private drives, plus the workspace drives you can read.
- A single toolkit: only the drives added to that toolkit that you can read.
A client can narrow a search to specific drives, folders, or files. Narrowing never widens access. Results include only files the connection can read at the moment it searches, so a deleted file, or one you lost access to, never comes back.
Each drive's settings apply to every connection, and to every folder in it. Semantic document search allows searching it by meaning and reading its files' text. File tools at Read files also allows listing its files, opening originals, Grep Drive, and File history, and at Read and write also allows changing, restoring, and merging its files. A drive with both off is hidden from every Drive tool. Managers choose these when they create the drive and change them in its settings; see Choose drive settings.
A toolkit's Drive tools setting narrows this for that toolkit's connections. It never grants access to a drive:
- File tools and Semantic document search (the default): each drive as set.
- File tools only: drives with File tools on keep that access. Drives with only Semantic document search on aren't reached, and Search Drive isn't offered.
- Semantic document search only: every drive with Semantic document search on is reached for Search Drive and its files' text. Other drives aren't reached. No listing, originals, changes, Grep Drive, or File history. Not available on the Free plan.
Everything gets whatever each drive allows. See Share a drive to change a toolkit's setting.
On the Free plan
AI clients use your drives through File tools. With Read files, they list files, read originals and extracted text, grep, and see file history. With Read and write, they can also change files and restore earlier versions. Text extraction has no monthly page limit, and Drive storage is 500 MiB by default.
Semantic document search is on paid plans, so Search Drive isn't offered. Enhanced processing, which reads scans and text in images, is on paid plans too. See Enhanced processing for what happens to those files on Free, and When your plan changes for what moving between plans does to each drive's settings.
Turning Extract text off
Extract text off, in a drive's settings, stops processing new files in that drive, so on Pro and Team they use none of your plan's pages. Files, their history, and the text already extracted stay available: AI clients can still read and grep that text, and Semantic document search keeps finding it. New files aren't processed until Extract text is back on. Semantic document search and Extract text are separate settings: turning one on or off doesn't change the other.
Changes to a drive's settings apply from each connection's next request, including searches and reads already in progress.
Source links
A source link opens the cited version of the file on a page of its own, without the rest of MCP Market around it. The passage is highlighted under Cited Passage, and the full extracted text sits below it. Markdown files, Word documents, and slide decks show formatted; Source switches to the plain text. Notices above the text say what is known to be missing, such as images or speaker notes, or that some text was recognized from images. Open in Dashboard goes to the same file inside your organization, and Download original gets the uploaded file. The reader must sign in and be able to read the file; anyone else sees Document not found.
Replacing a file doesn't break links already shared: each keeps opening the version it cites. Deleting the file, or its drive, makes its links stop working.
When a drive has Page links off, its source links open the cited version on the file's page inside your organization instead, and its standalone pages aren't available.
When results are incomplete
- Files in a drive with Semantic document search on become searchable when their status is Ready. While some files in the connection's scope can't be searched yet, the answer marks its coverage as incomplete, so an empty answer doesn't prove nothing matches.
- When the newest upload of a file failed processing, coverage is incomplete too. An earlier version of that file may still answer.
- Images, charts, and drawings may be missing from the text. Text in images is found only when the file went through enhanced processing, which is on paid plans, and recognized text may contain errors. Otherwise, scanned and image-only pages have no extracted text, so the tools can't find or read them.
- When search can't run, the client gets an error it can retry, never an empty list.