botserver/docs/src/chapter-06-gbdialog/keyword-clear-tools.md

696 B
Raw Blame History

CLEAR TOOLS Keyword

Syntax

CLEAR TOOLS

Parameters

None This keyword takes no arguments.

Description

CLEAR TOOLS removes every tool that has been added to the current conversation session. It clears the list of active tools stored in the sessiontool association table, effectively resetting the tool environment for the dialog. After execution, no previously added tools (via USE TOOL) remain available.

Example

USE TOOL "enrollment.bas"
TALK "Enrollment tool added."
CLEAR TOOLS
TALK "All tools have been cleared from this conversation."

After CLEAR TOOLS runs, the enrollment.bas tool is no longer accessible in the same session.