Read the lambda's database
read_databaseThe lambda's database - its records, shared by every version: whether it is switched on, how full it is, and its tables and views with their columns and how many rows each holds. With table, a page of that table's rows, newest first, up to 100 at a time. Read only: the lambda writes it, through Database.GetConnection(). Use it to see that migrations were applied and records were written. With feature, that feature's copy.
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": {
"privateKey": "<privateKey>"
},
"name": "read_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to read. | |
| order | No | A column to sort by; left out, the order the rows were written in. | |
| table | No | A table or view to read the rows of; left out, the tables are listed. | |
| offset | No | Rows to skip, for the next page. | |
| feature | No | Read this feature's copy of the database instead. | |
| ascending | No | Oldest or smallest first, rather than newest or largest. | |
| privateKey | Yes | The editor key, or the key of a demo. |