CodeFizz
ToolsDemoDocsRoadmapChangelogPricingFAQ
Get the plugin

Getting Started

  • Introduction
  • Quick Start
  • Requirements
  • Installing the CLI
  • License & Machines

Guides

  • Installing the Plugin
  • The AI Skill
  • CLI vs MCP
  • Multiple Editors
  • How It Works
  • Discovering Commands

Walkthroughs

  • Build a Blueprint with AI
  • Author a Material Graph
  • Create a Niagara System
  • Rig a Character with AI
  • Build an Animation Blueprint

Reference

  • Reference
  • Control Rig
  • Niagara
  • PCG
  • Materials
  • Behavior Trees
  • Environment Queries
  • StateTree
  • Sequencer
  • Level Actors
  • Project Settings
  • Blueprints
  • Blueprint Structs
  • Enhanced Input
  • Asset Management
  • Bulk Asset Ops
  • Data Assets
  • Object Properties
  • UMG Widgets
  • Data Tables
  • Curves
  • Animation
  • Console Commands
  • Profiling
  • Core
  • Debug

Help

  • FAQ
  • Troubleshooting
  • For AI Agents
DocsReferenceEnvironment Queries

Environment Queries

Every Environment Queries command in CodeFizz Editor Agent, with parameters and examples.

Loading…
PreviousBehavior TreesNextStateTree
CodeFizz

A drop-in Unreal Engine 5 plugin that exposes the entire editor surface (Blueprints, Materials, Niagara, PCG, StateTree, Control Rig, Insights profiling, and more) over the Model Context Protocol. Connect Claude Code, Cursor, VS Code, or any MCP-compatible client and let your AI build inside the engine.

Product

  • Features
  • Docs
  • Tools
  • Demo
  • Roadmap
  • Changelog
  • Pricing
  • FAQ

Resources

  • Install guide
  • Discord
  • YouTube
  • Open-source edition
  • Manage subscription

Legal

  • Refund Policy
  • Privacy Policy
  • Terms of Service

© 2026 CodeFizz. All rights reserved.

CodeFizz Editor Agent is a CodeFizz product. Payments processed by Polar Software, Inc. (Polar), the Merchant of Record.

11 commands. Each shows its parameters and an example, and has a copyable deep link, so you (or an AI agent) can jump straight to one.

search_eqs_nodes

Search EQS generators, tests and contexts, ranked

Searches every generator, test and context class in the project, engine and Blueprint alike, ranked the same way the Behavior Tree search ranks: exact beats prefix, prefix beats a word-boundary hit, that beats a loose substring. Pass --queries for several keywords in one call. The class prefix is optional, so 'Distance' finds EnvQueryTest_Distance.

ParameterTypeRequiredDescription
querystringNoKeyword to rank against. Omit to list everything of the chosen kind
queriesstringlistNoSeveral keywords at once; each gets its own ranked list
kindstringNogenerator | test | context | all
max_resultsintNoMaximum results per query
example
cfa search_eqs_nodes --kind generator
cfa search_eqs_nodes --queries "distance,trace,pathfinding" --max-results 3
get_eqs_node_type_info

Read an EQS generator, test or context class

Returns a class in full: its chain and every editable property with type, default and tooltip. Properties that take a context class are flagged, because a context is never added to a query, it is chosen on a generator or a test.

ParameterTypeRequiredDescription
node_classstringYesGenerator, test or context class name
kindstringNoNarrow the lookup: generator | test | context
filterstringNoCase-insensitive substring filter on property names
example
cfa get_eqs_node_type_info --node-class EnvQueryGenerator_SimpleGrid
cfa get_eqs_node_type_info --node-class EnvQueryTest_Distance --filter score
create_env_query

Create an Environment Query

Creates an Environment Query asset. Pass --generator to give it a first option so it is runnable immediately. The asset is built directly rather than through the EQS editor factory, which lives in a plugin that exports nothing; the visual graph appears when a human first opens it.

ParameterTypeRequiredDescription
namestringYesAsset name
pathstringNoContent folder
generatorstringNoGenerator class for a first option
example
cfa create_env_query --name EQ_Cover --path /Game/AI/Queries
cfa create_env_query --name EQ_Cover --generator EnvQueryGenerator_SimpleGrid
get_env_query

Read a query's options and tests

Returns every option with its generator and its ordered tests, each with the editor's own description text. Use --verbosity full to include all generator and test properties. 'has_editor_graph' reports whether the visual graph has been built yet; false is normal for a query authored here and is not damage.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
verbositystringNosummary | standard | full
example
cfa get_env_query --env-query /Game/AI/Queries/EQ_Cover --verbosity full
add_eqs_option

Add a generator option to a query

Adds an option and its generator. A query runs its options in order and uses the first that produces items, so several options are a fallback chain. Generator properties are set in the same call.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
generatorstringYesGenerator class
propertiesstringNoGenerator properties, as a JSON object
example
cfa add_eqs_option --env-query /Game/AI/Queries/EQ_Cover --generator EnvQueryGenerator_SimpleGrid --properties '{"GridSize":{"DefaultValue":1000}}'
remove_eqs_option

Remove an option from a query

Removes an option and every test on it.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
optionstringYesOption index, or the generator's class name
example
cfa remove_eqs_option --env-query /Game/AI/Queries/EQ_Cover --option 1
add_eqs_test

Add a test to an option

Adds a test and sets the things that decide what it does: --purpose (Filter, Score or FilterAndScore), --filter-type (Minimum, Maximum, Range or Match) when it filters, --scoring-equation (Linear, Square, InverseLinear, SquareRoot or Constant) and --scoring-factor as its weight. Tests run in order and are renumbered automatically. An invalid enum value comes back with the valid ones listed.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
optionstringNoOption index, or the generator's class name
test_classstringYesTest class, e.g. EnvQueryTest_Distance
purposestringNoFilter | Score | FilterAndScore
filter_typestringNoMinimum | Maximum | Range | Match
scoring_equationstringNoLinear | Square | InverseLinear | SquareRoot | Constant
scoring_factorstringNoWeight applied to this test's score
indexintNoPosition among the option's tests; default appended
propertiesstringNoAny other test properties, as a JSON object
example
cfa add_eqs_test --env-query /Game/AI/Queries/EQ_Cover --test-class EnvQueryTest_Distance --purpose Score --scoring-equation InverseLinear --scoring-factor 2.0
cfa add_eqs_test --env-query /Game/AI/Queries/EQ_Cover --test-class EnvQueryTest_Trace --purpose Filter --filter-type Match
remove_eqs_test

Remove a test from an option

Removes a test and renumbers the rest so their order matches their position.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
optionstringNoOption holding the test
teststringYesTest index, or its class name
example
cfa remove_eqs_test --env-query /Game/AI/Queries/EQ_Cover --test EnvQueryTest_Distance
set_eqs_node_property

Set a property on a generator or a test

Writes any reflected property on an option's generator, or on one of its tests when --test is given. Every property type works, including the FAIDataProvider values EQS uses for numbers: address the literal as e.g. ScoringFactor.DefaultValue, or bind it to a query parameter with ScoringFactor.DataBinding. --option asset targets the query's own settings instead. --index reorders: with --test it moves that test within its option, otherwise it moves the option within the query. Both orders are execution order, so this is authoring and not layout. bWorkOnFloatValues is routed through the engine's own mutator, which also repairs FilterType; writing it raw would leave a float test filtering by match. An unknown name comes back with the close matches.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
optionstringNoOption index, the generator's class name, or 'asset' for the query itself
teststringNoTest to target; omit to target the option's generator
propertystringNoProperty name or dotted path
valuestringNoValue to write
propertiesstringNoSeveral properties at once, as a JSON object
indexintNoMove the test, or the option when no test is named, to this position
example
cfa set_eqs_node_property --env-query /Game/AI/Queries/EQ_Cover --property GenerateAround --value EnvQueryContext_Querier
cfa set_eqs_node_property --env-query /Game/AI/Queries/EQ_Cover --test EnvQueryTest_Distance --property ScoringFactor.DefaultValue --value 3.0
validate_env_query

Check a query and return a verdict

Returns pass, pass_with_warnings or fail with the reasons. Errors cover a query with no options, an option with no generator, and any node not outered to the query, which is what makes the editor report an asset as corrupt. Warnings cover test ordering the editor would renumber, and an option that only ever filters so every surviving item ties.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
example
cfa validate_env_query --env-query /Game/AI/Queries/EQ_Cover
run_env_query

Run a query in the editor and return its results

Runs the query synchronously in the editor world and returns its scored items with locations, so an authored query can be checked against reality rather than assumed correct. Picks a pawn as the querier by default, or name one with --querier. Requires a world with an AI system; an empty preview world has none and the command says so rather than failing obscurely.

ParameterTypeRequiredDescription
env_querystringYesEnvironment Query path
querierstringNoActor to run the query as; defaults to any pawn
run_modestringNoSingleResult | RandomBest5Pct | RandomBest25Pct | AllMatching
max_resultsintNoMaximum result items to report
paramsstringNoNamed query parameters, as a JSON object of name to number or bool
example
cfa run_env_query --env-query /Game/AI/Queries/EQ_Cover
cfa run_env_query --env-query /Game/AI/Queries/EQ_Cover --querier BP_Enemy_1 --run-mode SingleResult