Preview Resource
preview_resourceInspect an Australian open-data resource's column names, types, sample rows, and total row count before writing SQL. Use it first to confirm the schema and avoid incorrect queries.
Instructions
Show a resource's columns, their types, a sample of rows, and the total row count.
ALWAYS call this before query_resource: you cannot write correct SQL without first seeing the column names. Costs nothing for resources held in the portal's DataStore; for others it downloads and caches the file, which then makes the follow-up query free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Sample rows to return, capped at 20. | |
| portal | No | The portal the resource belongs to. | data.gov.au |
| resource_id | Yes | From get_dataset's resources list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||