Browse rows
browseReads rows from a Drizzle table with column selection, filtering, sorting, pagination, and related-row includes, returning TypeScript-keyed rows plus total matches.
Instructions
Reads rows from a table, like Drizzle Studio: pick columns, filter, sort, page, and include related rows through the schema's relations. Returns rows keyed by TypeScript property, plus the total matching.
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": {
"table": "<table>"
},
"name": "browse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with | No | Related rows to include, by relation name: {"author": true} or {"comments": {"limit": 5, "columns": ["body"], "with": {"author": true}}}. Many-relations return 10 rows unless you set a limit. | |
| limit | No | Rows to return, up to 100. | |
| table | Yes | The table: its TypeScript export or SQL name. | |
| where | No | Conditions that must all hold, keyed by column (TypeScript key or SQL name). A plain value means equals: {"published": true}. Operators: {"createdAt": {"gte": "2026-01-01"}}, {"title": {"ilike": "%drizzle%"}}, {"id": {"in": [1, 2]}}, {"deletedAt": {"isNull": true}}. Use {"or": [{...}, {...}]} for alternatives. | |
| offset | No | Rows to skip, to page through the results. | |
| columns | No | Only these columns. | |
| orderBy | No | Sort order. Defaults to the primary key. |