get_document
Retrieve a specific ERPNext document by providing its DocType and name. Optionally specify fields to return.
Instructions
Get a single document by DocType and name.
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": "<name>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Document name/ID | |
| fields | No | Optional list of fields to return | |
| doctype | Yes | ERPNext DocType name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||