← All procedures
sqlite.tables
The tables and views of a database (read only: a missing file is an error)
MCPCLI- Package
- @procedures/sqlite · README
- Path
["sqlite","tables"]- CLI
mark sqlite tables- MCP tool
sqlite.tables on the dev-tools server- As data
{"$proc":["sqlite","tables"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/sqlite/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["sqlite","tables"], {});
console.log(JSON.stringify(result));From the command line
$ mark sqlite tables
As data, in a program
{ "$proc": ["sqlite", "tables"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"views": {
"description": "Also give the views (default true)",
"type": "boolean"
},
"dbPath": {
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
"type": "string",
"minLength": 1
}
}
},
"output": {
"type": "object",
"properties": {
"tables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the table or the view"
},
"type": {
"type": "string",
"enum": [
"table",
"view"
],
"description": "table or view"
},
"sql": {
"description": "The SQL that made the table or the view",
"type": [
"string",
"null"
]
}
},
"required": [
"name",
"type",
"sql"
],
"additionalProperties": {}
},
"description": "The tables (and the views), in the order of their names, without the internal sqlite_ tables"
}
},
"required": [
"tables"
],
"additionalProperties": {}
}
}