getItem
Retrieve a specific item by ID from a Directus collection using API URL, authentication token, and optional query parameters.
Instructions
Get a single item from a collection by ID
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": {
"collection": "<collection>",
"id": "<id>"
},
"name": "getItem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| id | Yes | Item ID | |
| query | No | Query parameters (optional) | |
| token | No | Authentication token (default from config) | |
| url | No | Directus API URL (default from config) |