Custom tool parameter cannot suport constant value in 0.11.1 #6868

Closed
opened 2026-02-21 18:17:45 -05:00 by yindo · 2 comments
Owner

Originally created by @mboo2005 on GitHub (Nov 21, 2024).

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.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Custom tool parameter type is integer. There is constant value in 0.8.3 when used in workflow. But when I upgraded to 0.11.1 the constant selection is missing. Where is the constant input box??
image

tool config

/v1/assets/random_value:
post:
summary: Generate a random value
description: Generates a random value based on the provided key and size.
operationId: assetsRandomValue
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
key:
type: string
description: The key used to generate the random value.
size:
type: integer
description: The size of the random value to generate.
default: 1
required:
- key

✔️ Expected Behavior

Custom tool parameter supports constant values. No variables are needed. This is very common in a paged API, such as when the pageSize and pageNumber parameters are assigned custom values.

Actual Behavior

There is no constant value selection instead

Originally created by @mboo2005 on GitHub (Nov 21, 2024). ### 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.11.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Custom tool parameter type is integer. There is constant value in 0.8.3 when used in workflow. But when I upgraded to 0.11.1 the constant selection is missing. Where is the constant input box?? ![image](https://github.com/user-attachments/assets/30d43f72-fb30-499b-9f7a-48b53d32fb44) ### tool config /v1/assets/random_value: post: summary: Generate a random value description: Generates a random value based on the provided key and size. operationId: assetsRandomValue requestBody: required: true content: application/json: schema: type: object properties: key: type: string description: The key used to generate the random value. size: type: integer description: The size of the random value to generate. default: 1 required: - key ### ✔️ Expected Behavior Custom tool parameter supports constant values. No variables are needed. This is very common in a paged API, such as when the `pageSize` and `pageNumber` parameters are assigned custom values. ### ❌ Actual Behavior There is no constant value selection instead
yindo added the 🐞 bug🔨 feat:tools labels 2026-02-21 18:17:45 -05:00
yindo closed this issue 2026-02-21 18:17:45 -05:00
Author
Owner

@mboo2005 commented on GitHub (Dec 20, 2024):

I found you had fixed the bug in 0.13

@mboo2005 commented on GitHub (Dec 20, 2024): I found you had fixed the bug in 0.13
Author
Owner

@mboo2005 commented on GitHub (Dec 20, 2024):

Fixed

@mboo2005 commented on GitHub (Dec 20, 2024): Fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6868