femm_session_open
Start or reuse a named FEMM engine session, choosing headless or GUI mode, attaching to an existing port, or setting the working directory for subsequent simulation tools.
Instructions
Start (or reuse) a named FEMM engine. Every other tool takes session (default "main")
and opens it lazily, so call this only to choose options.
headless=True spawns femm_headlessw (no window, fastest). headless=False opens the
femm_gui window: needed for femm_save_bitmap (screenshots are not written headless).
attach=True connects to an engine already listening on port (e.g. a GUI the user
started) instead of spawning one. work_dir is the engine's current directory; relative
paths in other tools resolve there (default ~/femm-agent-work/, env FEMM_AGENT_WORK).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | main | |
| port | No | ||
| attach | No | ||
| headless | No | ||
| work_dir | No |