Get Documents
get_documentsRetrieve ERPNext documents for a specified DocType, applying filters and field selection to fetch only the needed records.
Instructions
Get a list of documents for a specific DocType with optional filtering
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": "get_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of documents to return | |
| fields | No | Fields to include | |
| doctype | Yes | ERPNext DocType (e.g., Customer, Item) | |
| filters | No | Filter conditions as {field: value} |