aindrive/docs

Skills reference

Every transport exposes the same skills. On MCP they are tools; on A2A a DataPart {skill, ...args}; on AG-UI forwardedProps.skill + args. With a drive-scoped endpoint or token, drive_id is implied and list_drives is unavailable. Paths are drive-relative (docs/a.md); .aindrive/ is always refused, and paid folders you haven't bought stay locked.

list_drives

List the drives the authenticated user owns or is a member of.

No arguments.

list_shared

The files the user can reach, as common file references (contract 1.0): scope `mine` = drives they created, `shared_with_me` = every folder/file shared with them by others (role, shareOrigin, paid entitlement), `shared_with_org` = drives shared with an organization they are an active member of (shareOrigin org), `recent` = shared_with_me newest first. Page with `cursor` = the previous page's nextCursor.

ArgumentTypeRequiredNotes
scope"mine" | "shared_with_me" | "shared_with_org" | "recent"nodefault "shared_with_me"
qstringnocase-insensitive substring over the name or path
limitintegernodefault 50
cursorstringnonextCursor of the previous page

list_files

List entries at a path inside a drive. Empty path = root.

ArgumentTypeRequiredNotes
drive_idstringyesdrive id
pathstringnodrive-relative path (default '')

read_file

Read a file. utf8 returns text; base64 returns binary as base64. as="text" returns the document's plain text instead — PDF, DOCX, XLSX, PPTX and HTML included (needs the drive's search index service).

ArgumentTypeRequiredNotes
drive_idstringyes
pathstringyes
encoding"utf8" | "base64"nodefault "utf8"
as"raw" | "text"notext = extracted document text (PDF, Office, HTML) — default "raw"

write_file write

Write/overwrite a file. Creates intermediate folders.

ArgumentTypeRequiredNotes
drive_idstringyes
pathstringyes
contentstringyes
encoding"utf8" | "base64"nodefault "utf8"
base_revisionstringnoOptional. The revision you last read (a listing's `revision`); if the file changed since, nothing is written and the error names the current revision. "none" = only create a new file.

delete_path write

Delete a file, or a folder with everything in it. The drive root cannot be deleted.

ArgumentTypeRequiredNotes
drive_idstringyes
pathstringyes

stat

Metadata for a single path (name, isDir, size).

ArgumentTypeRequiredNotes
drive_idstringyes
pathstringyes

Search filenames (case-insensitive substring). To search what files SAY, use search_content.

ArgumentTypeRequiredNotes
drive_idstringyes
querystringyes
pathstringnodefault ""
limitnumbernodefault 50

search_content

Search the CONTENT of the drive's documents (PDF, DOCX, XLSX, PPTX, HTML, text) by meaning and keywords. Returns the most relevant passages with their file paths — read the file with read_file (as="text") for more. Only files you may read are returned. Works on drives whose owner turned the search index on.

ArgumentTypeRequiredNotes
drive_idstringyes
querystringyesa question or keywords, in any language
pathstringnoonly files under this folder — default ""
limitnumbernopassages to return (1-20) — default 8

Sale tools

Selling from an agent: share links, payout wallets, the drive's payment-token policy and the receipts ledger. Available only on the drive MCP endpoint (/mcp/d/<id>) to an OAuth account grant with drives:sell, and only for the drive's creator (checked on every call). They apply the same validation as the web UI. Prices are in units of the sale's currency.

list_shares sell

List every share link of the drive (free and paid), newest first.

No arguments.

create_share sell

Put a file or folder up for sale: creates a paid share link (/s/<token>). Needs a payout wallet covering the path and a currency from the drive's token policy; a non-root path must exist, so the drive's agent must be online.

ArgumentTypeRequiredNotes
pathstringyesdrive-relative path; '' sells the whole drive
pricenumberyesprice in `currency` units (2 decimals)
currencystringyestoken symbol from the drive's policy (get_sale_settings)
listedbooleannoshow on the drive's storefront — default true
role"viewer" | "editor"noaccess a buyer gets — default "viewer"
expiresAtstringnolink expiry (ISO 8601)

update_share sell

Change a paid share's price, currency or storefront listing. The link and past sales are kept.

ArgumentTypeRequiredNotes
shareIdstringyes
pricenumberno
currencystringno
listedbooleanno

delete_share sell

Revoke a share link. Buyers keep the access they already paid for.

ArgumentTypeRequiredNotes
shareIdstringyes

get_sale_settings sell

The drive's payout wallets (per path; the nearest ancestor's wallet is paid) and the tokens buyers can pay with.

No arguments.

set_payout_wallet sell

Set the wallet that receives payments for sales under a path ('' = the whole drive).

ArgumentTypeRequiredNotes
pathstringnodefault ""
walletstringyesEVM address

set_token_policy sell

Replace the list of tokens sales can be priced in. Each must be a token contract on Base.

ArgumentTypeRequiredNotes
tokensarrayyes

list_receipts sell

Sales ledger, newest first. Page with `before` = the last receipt's settledAt (a page may run past `limit` so a timestamp is never split across pages).

ArgumentTypeRequiredNotes
limitintegernodefault 50
beforestringnosettledAt of the previous page's last receipt