TEXT, INTEGER, REAL, BLOB or NUMERIC.
Agent database
list_tables
Structure of the agent private database: every table with its columns, types, primary keys and not-null flags.string
required
db_query
Runs a read-onlySELECT and returns the rows. Anything that writes is refused here.
string
required
string
required
A single
SELECT, or WITH … SELECT.array
Values bound to the
? placeholders, in order.number
Maximum rows returned. Default
100, maximum 1000.Request arguments
? placeholders with params rather than pasting values into the SQL.
db_execute
Changes the agent private database:CREATE, ALTER, DROP a table, or INSERT, UPDATE, DELETE rows.
string
required
string
A single statement.
array
Values bound to the
? placeholders in sql, in order.object[]
Several statements applied atomically in one transaction. Each entry needs
sql and may carry params. This is the right way to lay out a whole schema.sql or statements. The call fails if you pass neither.
Request arguments
Box database
The same three operations, on the database every agent of one Box shares. Get thespaceId from list_spaces.
list_space_tables
string
required
space_db_query
string
required
string
required
array
number
Default
100, maximum 1000.space_db_execute
string
required
string
array
object[]