Description of Problem
When using the create_file tool in Test Settings section in Artifact Toolkit, if a user enters a value into a field and then clears it, the tool still includes that field in the outgoing request with an empty string ("").
This behavior exists across most tool fields, but it causes a critical issue in the create_file tool because it contains mutually exclusive fields: (These two fields cannot be sent together in the same request)
Steps to Reproduce
- Open Artifact Toolkit -> Test Settings section.
- Select the create_file tool.
- Enter file name.
- Enter a value in the
filedata field.
- Clear the
filedata field.
- Enter a value in the
filepath field.
- Execute the tool.
- Inspect the outgoing request.
Expected Result
- The tool should execute successfully without triggering mutually exclusive field validation errors.
Actual Result
- Cleared fields are still included in the request as empty strings (
"").
- Both
filedata and filepath are sent together (one as "").
- The system returns an error indicating that both fields cannot be set simultaneously.
Additional Notes
- The issue becomes critical specifically for tools with mutually exclusive fields like create_file.
- Only reloading page/swithing tools help to clear the fields
