# 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:

```json
{
  "table_id": "customers",
  "row_id": "01HJK2N3M4P5Q6R7S8T9UVWXY"
}
```

Returns:
```json
{
  "success": true,
  "row": {
    "id": "01HJK2N3M4P5Q6R7S8T9UVWXY",
    "name": "Acme Corp",
    "email": "contact@acme.com",
    "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 `id` field automatically
- All fields of the row are returned as stored
- Use `QueryTableTool` to search for rows by criteria other than ID
- Use `UpsertTableRowTool` to modify a retrieved row
