list_documents
List documents. Documents are typed info (doc_type: email|offer|invoice|order|note|file|other) with a title + description the AI can analyze — e.g. sevDesk offers/invoices imported per lead. Scope with entity ('lead'|'contact'|'account'|'campaign') + entity_id. Pass unfiled:true instead to list the documents that belong to NO record (files stored for another system, screenshots for a ticket) — they appear in no other listing, so this is how you find and clean them up. Optional doc_type filter. Newest (occurred_at) first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries to return | |
| entity | No | lead|contact|account|campaign|user|asbest_project|raumbuchung_booking | |
| unfiled | No | Only documents with no entity at all. Use to find files stored without a CRM record. | |
| doc_type | No | Filter by type (email|offer|invoice|order|note|file|other) | |
| entity_id | No | Record id the documents are attached to |