KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Controlling AI behavior dynamically with tool removal
PRODUCT: 4D | VERSION: 21 | PLATFORM: Mac & Win
Published On: April 21, 2026
Tool availability can be used as a runtime control mechanism rather than a static configuration.

Removing tools before a prompt() call effectively changes what the AI model is able to do, without modifying the prompt itself. This is particularly useful when the same chat helper instance is reused across different workflows.

Example:
$chatHelper.unregisterTool("GetSalaryInfo")


Adjusting tools instead of prompts avoids relying on the model to “ignore” instructions and enforces behavior at the API level.