Concepts
Tools are Scripts
ProofChat tools invoke FileMaker scripts to perform actions and fetch data.
Summary
- Purpose: Explain the tool model
- Audience: Developers.
- Prereqs: /docs
Concept
- Tools are FileMaker scripts connected in the chat settings under Tools by mapping a tool name to a FileMaker script name and configuring expected parameters.
- When the chat decides to use a tool, it calls the mapped script and passes parameters extracted from the user's request.
- Scripts can perform typical FileMaker actions: create/update/delete records, navigate to layouts, open card windows, process data, and call external APIs via Insert from URL, etc.
- Keep the chat layout stable: avoid changing the current layout directly; if you must navigate, use a card window and close it when done.
- Return results via Exit Script. If the tool is configured to render a runtime component (e.g., KPI card, table), return data that matches the provided response schema for that component. Otherwise, the raw result is returned to the LLM as additional context for answering the user.