sample_rows
Fetch a small sample of rows from a PostgreSQL table to inspect actual data. Quickly preview content and structure without loading the full table.
Instructions
Fetch a handful of rows from a table to see what the data actually looks like.
Equivalent to SELECT * FROM schema.table LIMIT n.
Args: table: Table name. limit: Rows to return (default 10). schema: Schema name. Defaults to the session schema, then 'public'. database: Database name. Defaults to the session database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| table | Yes | ||
| schema | No | ||
| database | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |