The discovery_tools.py module#

Summary#

list_fields_impl

Enumerate scalar/vector fields available in the loaded case.

Description#

Solve-leaf live-introspection domain tools (shared implementation).

These tools talk directly to the connected Fluent backend and do not depend on any host-side cache, so they are safe to expose from the standalone MCP leaf.

Currently, list_fields_impl enumerates the data fields the loaded solver case can plot and report on (e.g. for contour setup).

Module detail#

async discovery_tools.list_fields_impl(backend: ansys.fluent.mcp.common.backend.Backend, *, scope: str = 'any') dict[str, Any]#

Enumerate scalar/vector fields available in the loaded case.

scope is forwarded verbatim to Backend.list_fields and is typically one of "any" | "cell" | "node" | "face".

Parameters:
backendBackend

Backend to supply to the function.

scopestr

Scope for limiting the field or API lookup.

Returns:
dict[str, Any]

Mapping containing the operation result.