Cloudflare D1 icon

Cloudflare D1

Execute operations against Cloudflare D1 serverless databases. Supports structured operations (Insert, Select, Update, Delete), raw SQL queries, and can be used as a tool by AI Agents.

Table Management → List Tables

AI-generated

Summary

List tables in a Cloudflare D1 database.

Inputs

  • databaseId (required) — The unique identifier of your Cloudflare D1 database.

Output shape

an object indicating success and returning an array of table names with the total count

The response includes a tables array of table names and a count number; success is signaled by a success boolean.

Examples

Example 1: Retrieve all tables in the database to use as input for subsequent operations.

Choose resource 'Table Management', operation 'List Tables', provide Database ID.

Example 2: Validate that tables exist before creating or querying them.

Set operation to 'List Tables', ensure Database ID is set, then use the returned table list.

Discussion