Script Workspace Actions
Genie includes direct Script Workspace tools so you can capture, edit, and apply script content without leaving FileMaker.

Toolbar actions
Section titled “Toolbar actions”1. Copy XML
Section titled “1. Copy XML”- Reads the current selection and converts it to XML.
- Use when you need raw script XML for review or sharing.
2. Paste XML
Section titled “2. Paste XML”- Applies XML from the clipboard into Script Workspace.
3. Edit XML
Section titled “3. Edit XML”- Opens the built-in XML editor for quick manual changes.
4. AI button
Section titled “4. AI button”- Opens the full Genie UI for generation and analysis.
- May also expose the compact Script Workspace Agent surface when that runtime is enabled. Script Workspace Agent is AGENT-only and uses Genie MCP tools to gather evidence before answering or preparing a reviewed artifact.
Once Genie is open, use Add Selection to capture the current live Script Workspace selection or current script. Use Metadata Explorer > Scripts when you want broader known-script context.
Note: there is no dedicated View button in the Script Workspace toolbar. Read-only viewing is available from context badges and Preview Code in chat.
Script Workspace Agent
Section titled “Script Workspace Agent”Script Workspace Agent is the compact AGENT surface for Script Workspace.
- It uses the selected provider/model.
- It prepares Genie runtime and Local MCP state before sending.
- It may use the active script name as lightweight context.
- It fetches exact script content only when the request needs it.
- It promotes script drafts through normal CODE Preview/Copy/Apply controls and exposes Create Script for supported reviewed new-script artifacts.
It does not silently capture XML on open, send, focus, or window changes. Use explicit Add Selection, Metadata Explorer selections, or Refresh Selection / Capture when you need current Script Workspace XML evidence.

When a supported new-script artifact is ready, the compact panel keeps Preview, Copy, Create Script, and Apply visible so you choose the next action deliberately.

Native apply and progress
Section titled “Native apply and progress”When applying code from Genie, the system uses native operations that target your Script Workspace directly:
- Apply Progress: Shows an animated Applying… indicator while changes are being written to FileMaker.
- Delta Apply (Line-targeted): Edits specific lines in your existing script based on a native delta plan.
- Full Script Apply: Writes an entire script body for new scripts or complete refactors.
- Automatic Routing: You don’t have to select the target lines before clicking Apply Code. Genie uses the original line-mapping context to apply edits precisely where they belong.
- Safety: Apply stops and reports an error if the editor state changes or the wrong script is front-most.
Best practices
Section titled “Best practices”- Keep Script Workspace front-most before copy/paste/apply actions.
- Use Add Selection for live Script Workspace context and Metadata Explorer for broader script or schema context.
- If a command fails, run one manual
Cmd+Cin Script Workspace and retry.