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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "femm_session_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | main | |
| port | No | ||
| attach | No | ||
| headless | No | ||
| work_dir | No |