list_tables
Retrieve all tables within an Airtable base by providing the base ID to manage and organize your data structure.
Instructions
List all tables in a base
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": {
"base_id": "<base_id>"
},
"name": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_id | Yes | ID of the base |
Implementation Reference
- src/index.ts:409-418 (handler)Handler for the 'list_tables' tool. Extracts the base_id from the request arguments, fetches the list of tables from the Airtable API endpoint `/meta/bases/${base_id}/tables`, and returns the response data as formatted JSON text.
case "list_tables": { const { base_id } = request.params.arguments as { base_id: string }; const response = await this.axiosInstance.get(`/meta/bases/${base_id}/tables`); return { content: [{ type: "text", text: JSON.stringify(response.data.tables, null, 2), }], }; } - src/index.ts:86-99 (registration)Registration of the 'list_tables' tool in the ListTools response, including its name, description, and input schema requiring a 'base_id'.
{ name: "list_tables", description: "List all tables in a base", inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, }, required: ["base_id"], }, }, - src/index.ts:89-98 (schema)Input schema for the 'list_tables' tool, defining the required 'base_id' parameter as a string.
inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, }, required: ["base_id"], },