Work with scripts
FileMaker scripts consist of ordered script steps configured with parameters, calculation formulas, and control logic. Ask your coding agent to inspect existing scripts thoroughly before applying modifications.
Read before editing
Read the Submit Order script, explain its parameter and result contract, and identify the smallest change needed to add validation. Do not edit it yet.
The script definition returns stable step identifiers. These identifiers allow the agent to insert or modify discrete script steps without replacing the entire script structure.
Create a script
Specify the required inputs, outputs, side effects, and error-handling requirements. The agent applies project script-naming and comment standards, selects supported script steps, and validates option parameters against FileMaker documentation.
Organize related scripts into designated project folders. Folders organize items in the Script Workspace but do not create separate namespaces; script names must remain unique across the file.
Modify a script safely
Use targeted step-level edits rather than overwriting an entire script. Overwriting can discard steps or specialized options that the CLI tool can read but cannot reconstruct.
Instruct the agent to preserve all unreferenced steps, then inspect the full script after the batch commits. Review calculation contexts, target fields, subscripts, and parameter/result passing.
Unsupported steps
The filemaker CLI documents supported script steps in its catalog help. If a requested step or option is unavailable, the agent reports this limitation directly instead of substituting an alternative step.
See Operation catalog for supported script commands.