get_documents
Retrieve ERPNext documents by DocType using optional filters, fields, and limits to access specific business records.
Instructions
Get a list of documents for a specific doctype
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 |
|---|---|---|---|
| doctype | Yes | ERPNext DocType (e.g., Customer, Item) | |
| fields | No | Fields to include (optional) | |
| filters | No | Filters in the format {field: value} (optional) | |
| limit | No | Maximum number of documents to return (optional) |