get_documents
Retrieve documents from any ERPNext DocType by specifying doctype, filters, and fields. Limit results for targeted queries.
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 |
|---|---|---|---|
| limit | No | Maximum number of documents to return (optional) | |
| fields | No | Fields to include (optional) | |
| doctype | Yes | ERPNext DocType (e.g., Customer, Item) | |
| filters | No | Filters in the format {field: value} (optional) |