Commands  ›  General  ›  Query Model

Query Model

General writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. The specified utility class must exist and have a compatible static entry method.

After it runs

Query result JSON is stored in LastQueryResult for consumption by the command system. No model modifications are made.

When to use this

Don't use this when

Direct MCP tool calls (Claude calls those via GenericContextTool, not this). Model-modifying operations (use a dedicated ExternalCommand instead).

Inputs

NameKindTypeRequiredDefaultDescription
utility config string no Class name of the McpTool utility to invoke
method config string no Optional method name (defaults to GetAll or Get)
filter config string no Optional JSON parameters for the method

Returns

NameTypeDescription
ResultJSONQuery result data

What you'll see in the chat

on start
Querying the model for {utility} data...
Running context query...
thinking
Locating utility class...
Invoking method and serializing results...
on success
Query returned results from {utility}.
on failure
Query failed: {error}

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/query_model
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

query model · list data · get info · model query · context query

PillarGeneral