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.
| Argument | Type | Required | Notes |
|---|---|---|---|
scope | "mine" | "shared_with_me" | "shared_with_org" | "recent" | no | default "shared_with_me" |
q | string | no | case-insensitive substring over the name or path |
limit | integer | no | default 50 |
cursor | string | no | nextCursor of the previous page |
list_files
List entries at a path inside a drive. Empty path = root.
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | drive id |
path | string | no | drive-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).
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
path | string | yes | |
encoding | "utf8" | "base64" | no | default "utf8" |
as | "raw" | "text" | no | text = extracted document text (PDF, Office, HTML) — default "raw" |
write_file write
Write/overwrite a file. Creates intermediate folders.
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
path | string | yes | |
content | string | yes | |
encoding | "utf8" | "base64" | no | default "utf8" |
base_revision | string | no | Optional. 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
path | string | yes |
stat
Metadata for a single path (name, isDir, size).
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
path | string | yes |
search
Search filenames (case-insensitive substring). To search what files SAY, use search_content.
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
query | string | yes | |
path | string | no | default "" |
limit | number | no | default 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
drive_id | string | yes | |
query | string | yes | a question or keywords, in any language |
path | string | no | only files under this folder — default "" |
limit | number | no | passages 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
path | string | yes | drive-relative path; '' sells the whole drive |
price | number | yes | price in `currency` units (2 decimals) |
currency | string | yes | token symbol from the drive's policy (get_sale_settings) |
listed | boolean | no | show on the drive's storefront — default true |
role | "viewer" | "editor" | no | access a buyer gets — default "viewer" |
expiresAt | string | no | link expiry (ISO 8601) |
update_share sell
Change a paid share's price, currency or storefront listing. The link and past sales are kept.
| Argument | Type | Required | Notes |
|---|---|---|---|
shareId | string | yes | |
price | number | no | |
currency | string | no | |
listed | boolean | no |
delete_share sell
Revoke a share link. Buyers keep the access they already paid for.
| Argument | Type | Required | Notes |
|---|---|---|---|
shareId | string | yes |
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).
| Argument | Type | Required | Notes |
|---|---|---|---|
path | string | no | default "" |
wallet | string | yes | EVM address |
set_token_policy sell
Replace the list of tokens sales can be priced in. Each must be a token contract on Base.
| Argument | Type | Required | Notes |
|---|---|---|---|
tokens | array | yes |
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).
| Argument | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | default 50 |
before | string | no | settledAt of the previous page's last receipt |