List documents in a connection
list_documentsSearch documents in a connection by name, extension, or folder to locate a file without opening it. Returns metadata and source references for opening or editing.
Instructions
List the documents in a connection without opening them, to find a file the user named. folder is a folder in the connection, "" for its root; nameContains keeps names containing it, ignoring case; extensions is a comma list such as '.docx,.dotx', "" for every extension the connection allows; recursive includes subfolders; templates=true lists the connection's templates folder instead. Returns {connectionId, items: [{source, name, folder, contentType, length, lastModified, isTemplate}], continuation}. Pass an item's source to open_document or edit_document, or as create_document's template source. When continuation is not empty, call again with it and the same arguments for the next page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connectionId": "<connectionId>",
"folder": "<folder>",
"nameContains": "<nameContains>",
"extensions": "<extensions>",
"recursive": "<recursive>",
"templates": "<templates>",
"maximumResults": "<maximumResults>",
"continuation": "<continuation>"
},
"name": "list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| recursive | Yes | ||
| templates | Yes | ||
| extensions | Yes | ||
| connectionId | Yes | ||
| continuation | Yes | ||
| nameContains | Yes | ||
| maximumResults | Yes |