get_document
Retrieve requested fields from any identity document type after user consent, for cases without a dedicated document tool.
Instructions
Retrieve fields from any document type not covered by a dedicated tool. The user will be prompted for consent before any data is returned.
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": {
"document_type": "<document_type>",
"fields": "<fields>",
"purpose": "<purpose>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | The field names to retrieve from the document | |
| purpose | Yes | Why the calling agent needs this data — shown to the user for consent | |
| document_id | No | Specific document id (required when more than one of this type is stored) | |
| document_type | Yes | The document type to retrieve (e.g. "insurance_card") |