list_documents
Retrieve and filter ERPNext documents by DocType using Frappe syntax. Specify fields, sorting, and pagination to get exact records.
Instructions
List/search documents of a DocType.
filters: Frappe filter syntax, e.g. [["status", "=", "Open"]] or {"status": "Open"}. fields: list of fieldnames to return, e.g. ["name", "customer_name"]. Defaults to ["name"]. order_by: e.g. "creation desc". limit: max rows to return (default 20). limit_start: offset for pagination.
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": {
"doctype": "<doctype>"
},
"name": "list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | No | ||
| doctype | Yes | ||
| filters | No | ||
| order_by | No | ||
| limit_start | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |