sql_editor_ask
Answers SQL Editor chat questions and sends responses to the editor inbox, using the chosen language, profile, and optional SAS context.
Instructions
Answer a SQL Editor chat question in the app; the reply arrives in the editor's inbox.
``profile`` picks speed vs depth: "fast", "balanced" (default) or "thorough". ``language``: what the tab runs
as (singlestore, procsql, fedsql, cas). For a SAS tab, ``sas`` is its context: ``library`` (library or caslib),
``library_info`` ({name, engine/type, database, singlestore, singlestore_kind}), ``tables`` (names, or
{name, loaded}), ``columns`` ({"LIB.TABLE": [{name, type, length, format}]}) and ``options``; the question then
carries the SAS guide of that language (once per Claude session and language).
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": {
"editor_id": "<editor_id>",
"question": "<question>"
},
"name": "sql_editor_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sas | No | ||
| sql | No | ||
| profile | No | ||
| database | No | ||
| language | No | singlestore | |
| question | Yes | ||
| selected | No | ||
| editor_id | Yes | ||
| last_result | No |