The query object parameter does not flat when execute http request by custom tool. #10665

Closed
opened 2026-02-21 18:49:39 -05:00 by yindo · 0 comments
Owner

Originally created by @WangXiaoJin on GitHub (Mar 12, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I want to integrate our company's existing web services into a custom tool for workflow use. But now query object parameter does not support.

Custom tool Swagger config:

"get": {
          "operationId": "listByEntity",
          "parameters": [
              {
                  "in": "query",
                  "name": "dto",
                  "required": true,
                  "schema": {
                      "$ref": "#/components/schemas/EntityDTO"
                  }
              }
          ]
....

Testing Custom Tool

Image

✔️ Expected Behavior

Expect to flat query object parameter,the format of query likes this :

http://localhost:8080/api/v1/xxxxxx/entity/1?filename=owner.png&filtered=true

Actual Behavior

the result of dify api

2025-03-12 13:03:21.031 INFO [Dummy-8027] [_client.py:1038] - HTTP Request: GET http://localhost:8080/xxxxxx/entity-conditions/entity/1?dto=%7B%20%20%20%22filename%22%3A%20%22owner.png%22%2C%20%20%22filtered%22%3A%20true%20%7D 

the result of Swagger UI is correct

Image

Image

Originally created by @WangXiaoJin on GitHub (Mar 12, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I want to integrate our company's existing web services into a custom tool for workflow use. But now query object parameter does not support. #### Custom tool Swagger config: ```json "get": { "operationId": "listByEntity", "parameters": [ { "in": "query", "name": "dto", "required": true, "schema": { "$ref": "#/components/schemas/EntityDTO" } } ] .... ``` #### Testing Custom Tool ![Image](https://github.com/user-attachments/assets/91aa293d-e21f-43f9-b9b2-e9ccaf5e0033) ### ✔️ Expected Behavior Expect to flat query object parameter,the format of query likes this : ``` http://localhost:8080/api/v1/xxxxxx/entity/1?filename=owner.png&filtered=true ``` ### ❌ Actual Behavior #### the result of dify api ``` 2025-03-12 13:03:21.031 INFO [Dummy-8027] [_client.py:1038] - HTTP Request: GET http://localhost:8080/xxxxxx/entity-conditions/entity/1?dto=%7B%20%20%20%22filename%22%3A%20%22owner.png%22%2C%20%20%22filtered%22%3A%20true%20%7D ``` #### the result of Swagger UI is correct ![Image](https://github.com/user-attachments/assets/ec49e553-fd63-4092-8f16-cdcb7d3b6cd0) ![Image](https://github.com/user-attachments/assets/a1976fe1-82c2-43a6-8c2e-906ef6f46b58)
yindo added the 🔨 feat:tools label 2026-02-21 18:49:39 -05:00
yindo closed this issue 2026-02-21 18:49:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10665