Create a query
appsmith_create_queryCreate a new query on a page against a datasource, providing query text and name for bindings.
Instructions
Creates a query on a page against an existing datasource. The plugin and workspace are taken from the datasource.
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": {
"pageId": "<pageId>",
"datasourceId": "<datasourceId>",
"name": "<name>",
"body": "<body>"
},
"name": "appsmith_create_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Query text, e.g. the SQL statement. | |
| name | Yes | Query name, as referenced in bindings (e.g. Query1). | |
| pageId | Yes | Page the query belongs to. | |
| datasourceId | Yes | Datasource id, from appsmith_list_datasources. |