actionstringrequiredadd · list · remove.
pathstringThe workspace file to index — a PDF, a DOCX, text.
storagestringBy label. The account's default otherwise.
documentstringThe id, from list.
What it is for
query_storage { action: "search" } finds documents by meaning — but only ones that were indexed. Without this tool an agent could produce a report and never be able to find it again by what it says.
The pair
document({ action: "add", path: "Reports/q3.pdf" })
query_storage({ action: "search", query: "what did we say about churn" })# The calls the model makes:
document = {"action": "add", "path": "Reports/q3.pdf"}
query_storage = {"action": "search", "query": "what did we say about churn"}What it costs
Indexing uploads the file and consumes the storage's space. The search itself is a credit per call.
list is free
The category is computed from the action: listing is a read, adding and removing are writes.