How to add MAX_TOOLS_NUM to the docker version to solve the maximum agent tool usage limit? #8676

Closed
opened 2026-02-21 18:26:58 -05:00 by yindo · 1 comment
Owner

Originally created by @dashing9527 on GitHub (Feb 26, 2025).

@crazywoola How can increase the MAX_TOOLS_NUM on docker version?

Originally posted by @yanwei007 in #7456

Originally created by @dashing9527 on GitHub (Feb 26, 2025). > @crazywoola How can increase the MAX_TOOLS_NUM on docker version? > > _Originally posted by @yanwei007 in [#7456](https://github.com/langgenius/dify/issues/7456#issuecomment-2686580613)_
yindo added the 🙋‍♂️ question label 2026-02-21 18:26:58 -05:00
yindo closed this issue 2026-02-21 18:26:58 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 26, 2025):

Hey @yanwei007! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. If you need any assistance, feel free to ask! Dosu

I found a similar unsolved discussion regarding increasing the limit of tools included in an agent [1]. Additionally, there is an open issue related to configuring the maximum number of tools in the agent for Docker deployment, but no solution has been found in the comments [2].

Currently, there is no specific information available in the Dify documentation or codebase about configuring MAX_TOOLS_NUM for Docker deployments. You might want to check the .env file or the docker/.env.example file for any related configurations, as these files typically contain environment variables that can be modified for Docker setups [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 26, 2025): <!-- Greeting --> Hey @yanwei007! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. If you need any assistance, feel free to ask! [Dosu](https://dosu.dev) <!-- Answer --> I found a similar unsolved discussion regarding increasing the limit of tools included in an agent <sup>[[1]](https://github.com/langgenius/dify/discussions/11196)</sup>. Additionally, there is an open issue related to configuring the maximum number of tools in the agent for Docker deployment, but no solution has been found in the comments <sup>[[2]](https://github.com/langgenius/dify/issues/7144)</sup>. Currently, there is no specific information available in the Dify documentation or codebase about configuring `MAX_TOOLS_NUM` for Docker deployments. You might want to check the `.env` file or the `docker/.env.example` file for any related configurations, as these files typically contain environment variables that can be modified for Docker setups <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/docker-compose.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/48b19a33-a4ca-404a-8c4d-f2c6663d7ea7?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8676