List database tables
list_tablesLists the tables of the Supabase project connected to the site (get_project database shows whether one is): each table's name, its fields with their kinds (text, number, yes or no, date, date and time, link to another table, option, list, data, id), which fields a new entry must give, about how many entries it has, and who can see and change entries (one of Xodia's eight rules, rules Xodia didn't write, or row rules off, which lets anyone with the public key read and change it). Read it before binding a list or form to a table or adding one. With source "xodia" (or when get_project database.source is "xodia") it works on the site's own Xodia database, whose tables and rules are the file xodia/data-rules.json in the repo: each table's fields with their types, its rule, its indexes, test entries per table and the sign-in ways. Reads only, never entries or keys.
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": {
"projectId": "<projectId>"
},
"name": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | true: read the tables again now instead of the copy Xodia keeps for a minute. Default false | |
| source | No | Which database: "xodia" (the site's own Xodia database, kept by Xodia) or "supabase" (the Supabase project the owner connected). Leave out to use the one get_project database.source names | |
| projectId | Yes | Project id from list_projects |