Query and edit records with agent tools

Record operations execute through the active FileMaker Pro session using the credentials of the signed-in account. Record access is evaluated independently from native schema, script, and layout authoring.

Read records

Use read-only SQL queries for targeted data analysis that does not require layout formatting or portal structures:

Copy
List the 20 most recent open orders with their customer names. Do not change any records.

SQL operations are strictly read-only. Have the agent inspect table and field names before querying, and restrict requests to the specific fields and row counts needed.

Use FileMaker data operations when requests depend on layout contexts, portal structures, value lists, container data, or specific FileMaker Data API response shapes.

Create, edit, or delete records

Record writes execute through validated FileMaker data operations. Specify the target layout, identify records using stable primary keys, and state intended field changes precisely.

The active FileMaker account must have appropriate access privileges for the layouts, fields, records, and scripts involved. Accounts with schema authoring permissions do not automatically possess unrestricted record access.

Instruct the agent to re-read modified records following write operations. For delete operations, confirm the target record IDs or primary keys before approving execution.

Use scripts for multi-record transactions

Use a FileMaker script when an action modifies multiple related records, requires complex validation rules, or must execute as a single transactional unit. A Web Viewer app can pass a JSON parameter and receive a structured JSON result using standard script-call utilities.

See Call FileMaker scripts from an app and Script calls.