Replies: 1 comment 2 replies
|
Hi @ToWorld, here's what I found for your two questions: 1) Dynamic Server URL in Custom ToolsCustom tools in Dify do not support dynamically parameterizing the server domain/IP:port at invocation time. The server URL is fixed when you define the tool's OpenAPI schema — it's taken from the The only built-in flexibility is environment-based server selection: if you define multiple entries in the Workaround options:
2) Pre-installed Sandbox PackagesThe Dify sandbox uses a minimal installation approach — no application-level Python or JavaScript packages are pre-installed beyond the standard library. Here's what's included: Runtimes & Package Managers:
System Utilities:
No pre-installed pip/npm packages like numpy, pandas, requests, etc. are bundled. Users can install dependencies at runtime using If you're connecting a non-Dify sandbox, you'd mainly need to provide Python 3.12, Node.js 22, and ensure the package managers are available so code can install dependencies on the fly. The Dify sandbox also pre-initializes To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Self Checks
Content
I have two questions:
When creating a custom tool, how do I dynamically specify the server's domain name or IP:port? Currently, it seems only some request parameters can be passed;
For sandboxes, Python 3, and JavaScript, what common packages are installed in the image? I will be connecting to a non-Dify sandbox, and these packages need to be installed.
Looking forward to your reply.
All reactions