generate_typescript_types
Generate TypeScript type definitions from your database schema with the Supabase CLI, saving the output file directly to your workspace.
Instructions
Generates TypeScript types from the database schema using the Supabase CLI (supabase gen types) and saves the file inside the configured workspace. Requires DATABASE_URL configuration and Supabase CLI installed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_typescript_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Path inside the workspace where the generated TypeScript file should be saved. | |
| output_filename | No | Filename to save the generated types to in the workspace root. | database.types.ts |
| included_schemas | No | Database schemas to include in type generation. |