Script Authoring in AGENT
CODE is now a script-authoring capability inside AGENT, not a separate selectable mode. Ask for a new script or an edit in ordinary language. AGENT resolves the target, reads the evidence it needs, and chooses the correct response for your access level.
The free version
Section titled “The free version”The free version gives you the complete useful answer as human-readable FileMaker script steps, options, calculations, assumptions, and manual implementation guidance. It does not expose Script Schema, AST, raw XML, native clipboard objects, Preview, Copy, Create, or Apply.
Coding Access
Section titled “Coding Access”Coding Access can turn the same request into a structured native script artifact. When the request and target are clear, Genie can present reviewed actions such as Preview, Copy, Create, or Apply.
Create a new script
Section titled “Create a new script”- Open AGENT and describe the script you want.
- If an open or attached script is a reference, say that you want a new script based on it.
- AGENT reads the relevant source without treating it as the edit target.
- Review the proposed script and any assumptions.
- With Coding Access, use the native review card to preview, copy, or create it.
Edit an existing script
Section titled “Edit an existing script”- Name the script, refer explicitly to the current script, or use Add Selection.
- Describe the exact change and the intended behavior.
- If the named target conflicts with the selected script, choose the correct identity when Genie asks.
- Review the result before using Copy or Apply.
For a single-script delta, the script name and ID remain one atomic target. Workbench Apply acts only on the script the user has open and never selects or switches scripts.
Drafts, warnings, and references
Section titled “Drafts, warnings, and references”- Genuine compile or structural faults produce a warned draft and should be reviewed before use.
- A script-step target that FileMaker can resolve by name is not blocked only because its numeric reference ID is unavailable.
- Diagnostics stay out of the clean review card unless the artifact is genuinely warned.
- If complete script text is needed, AGENT reads the smallest exact range instead of inventing omitted calculations.
Copy and Apply
Section titled “Copy and Apply”- Copy prefers a complete merged script object after merge composition succeeds.
- Apply has its own stricter validation and recovery contract.
- Current-script Apply never selects or switches scripts.
- If FileMaker accepts a paste but Genie cannot verify the outcome, inspect Script Workspace before retrying.
QuickCode
Section titled “QuickCode”QuickCode remains a separate, bounded Script Workspace shortcut for an explicit sealed selection. Broader work should continue in AGENT.