search_documents
Search ERPNext/Frappe documents by DocType and field-filter query to find records matching specific criteria. Retrieve targeted document data for AI-assisted lookups and workflows.
Instructions
Advanced search for documents
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>",
"query": "<query>"
},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Query object (field filters) | |
| doctype | Yes | DocType name |