Get Table Row
get_table_row · Tools · Tables
Get one full table row JSON object.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
row_id | string | Yes | Row ID from query_table preview results. Numeric tables accept the numeric id as text too. |
table_id | string | Yes | The table's id or slug, as list_tables gives them; the slug aliases the id and either is accepted. Use query_table first to choose the table and row. |
Get Table Row Tool#
Retrieve a specific row from a table by its unique ID.
When to Use#
The AI uses this tool when it needs to retrieve a specific record by its known identifier. Common scenarios include looking up a record after creating it, fetching related data during a workflow, or retrieving a specific item for display or modification.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
table_id |
string | Yes | The table's id or slug, as list_tables gives them; the slug aliases the id and either is accepted |
row_id |
string | number | Yes | Row identifier. Use string ULID for id_format=string, integer for id_format=number |
Returns#
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether the retrieval succeeded |
row |
object | The row data with all fields |
table_id |
string | The table identifier |
Example Scenario#
After inserting a new customer record, the AI retrieves the row to confirm the data and get the generated ID:
{
"table_id": "customers",
"row_id": "01HJK2N3M4P5Q6R7S8T9UVWXY"
}
Returns:
{
"success": true,
"row": {
"id": "01HJK2N3M4P5Q6R7S8T9UVWXY",
"name": "Acme Corp",
"email": "[email protected]",
"plan": "enterprise",
"created_at": "2026-03-07T10:30:00Z"
},
"table_id": "customers"
}
Notes#
- Returns an error if the row_id doesn't exist in the table
- The row object includes the
idfield automatically - All fields of the row are returned as stored
- Use
QueryTableToolto search for rows by criteria other than ID - Use
UpsertTableRowToolto modify a retrieved row