Flecs List Queries
flecs_list_queriesList named queries, systems, and observers with evaluation counts and timing, filterable by kind or name. Use to inspect FLECS performance and identify query plans.
Instructions
[READ] List named queries, systems and observers with evaluation statistics.
Each entry has 'name' (usable with flecs_run_named_query), 'kind' (Query, System or Observer), 'expr' (the query expression), 'results' and 'count' (current matches), 'eval_count', 'eval_time', 'eval_mode', 'cache_kind', 'batched', 'empty_tables', 'plan_size' and, when the stats module is imported, 'memory'. FLECS evaluates every query to produce this list, which can take a while in very large worlds. Returns {total, offset, limit, queries}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only return entries of this kind. | |
| limit | No | Maximum number of items to return. | |
| offset | No | Number of items to skip (for paging). | |
| include_plans | No | Include the query plan text ('plan', 'cache_plan'). | |
| name_contains | No | Only return entries whose name contains this text (any case). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| queries | Yes |