Commands › General › Query Model
Query Model
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
- Claude needs model context data (rooms, levels, views) via the execute_command path.
- User asks a question about the model and Claude routes through this command.
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
| Name | Kind | Type | Required | Default | Description |
|---|---|---|---|---|---|
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
| Name | Type | Description |
|---|---|---|
Result | JSON | Query result data |
What you'll see in the chat
on start
Querying the model for {utility} data...
Running context query...
Running context query...
thinking
Locating utility class...
Invoking method and serializing results...
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
Related
| Pillar | General |
|---|