Where to configure the parameters in requestBody when using custom tools #21843

Closed
opened 2026-02-21 20:14:33 -05:00 by yindo · 2 comments
Owner

Originally created by @James-Bond123 on GitHub (Jan 22, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

"/import": { "post": { "operationId": "importWatches", "tags": [ "Import" ], "summary": "Import watch URLs", "description": "Import a list of URLs to monitor. Accepts line-separated URLs in request body.", "x-code-samples": [ { "lang": "curl", "source": "curl -X POST \"http://localhost:5000/api/v1/import\" \\\n -H \"x-api-key: YOUR_API_KEY\" \\\n -H \"Content-Type: text/plain\" \\\n -d $'https://example.com\\nhttps://example.org\\nhttps://example.net'\n" }, { "lang": "Python", "source": "import requests\n\nheaders = {\n 'x-api-key': 'YOUR_API_KEY',\n 'Content-Type': 'text/plain'\n}\nurls = 'https://example.com\\nhttps://example.org\\nhttps://example.net'\nresponse = requests.post('http://localhost:5000/api/v1/import', \n headers=headers, data=urls)\nprint(response.json())\n" } ], "parameters": [ { "name": "tag_uuids", "in": "query", "description": "Tag UUID to apply to imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "tag", "in": "query", "description": "Tag name to apply to imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "proxy", "in": "query", "description": "Proxy key to use for imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "dedupe", "in": "query", "description": "Remove duplicate URLs (default true)", "schema": { "type": "boolean", "default": true } } ], "requestBody": { "required": true, "content": { "text/plain": { "schema": { "type": "string" }, "example": "https://example.com\nhttps://example.org\nhttps://example.net\n" } } }, "responses": { "200": { "description": "URLs imported successfully", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string", "format": "uuid" }, "description": "List of created watch UUIDs" } } } }, "500": { "description": "Server error" } } } },
The tool I customized,I don't know where to config parameters in requestBody.

Image

✔️ Expected Behavior

The tool node should have a place that allows configuring the requestBody parameter.

Actual Behavior

No response

Originally created by @James-Bond123 on GitHub (Jan 22, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ` "/import": { "post": { "operationId": "importWatches", "tags": [ "Import" ], "summary": "Import watch URLs", "description": "Import a list of URLs to monitor. Accepts line-separated URLs in request body.", "x-code-samples": [ { "lang": "curl", "source": "curl -X POST \"http://localhost:5000/api/v1/import\" \\\n -H \"x-api-key: YOUR_API_KEY\" \\\n -H \"Content-Type: text/plain\" \\\n -d $'https://example.com\\nhttps://example.org\\nhttps://example.net'\n" }, { "lang": "Python", "source": "import requests\n\nheaders = {\n 'x-api-key': 'YOUR_API_KEY',\n 'Content-Type': 'text/plain'\n}\nurls = 'https://example.com\\nhttps://example.org\\nhttps://example.net'\nresponse = requests.post('http://localhost:5000/api/v1/import', \n headers=headers, data=urls)\nprint(response.json())\n" } ], "parameters": [ { "name": "tag_uuids", "in": "query", "description": "Tag UUID to apply to imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "tag", "in": "query", "description": "Tag name to apply to imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "proxy", "in": "query", "description": "Proxy key to use for imported web page change monitors (watches)", "schema": { "type": "string" } }, { "name": "dedupe", "in": "query", "description": "Remove duplicate URLs (default true)", "schema": { "type": "boolean", "default": true } } ], "requestBody": { "required": true, "content": { "text/plain": { "schema": { "type": "string" }, "example": "https://example.com\nhttps://example.org\nhttps://example.net\n" } } }, "responses": { "200": { "description": "URLs imported successfully", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string", "format": "uuid" }, "description": "List of created watch UUIDs" } } } }, "500": { "description": "Server error" } } } },` The tool I customized,I don't know where to config parameters in requestBody. <img width="758" height="305" alt="Image" src="https://github.com/user-attachments/assets/2469b0ed-5d3e-4832-8047-b9218c72cdfe" /> ### ✔️ Expected Behavior The tool node should have a place that allows configuring the requestBody parameter. ### ❌ Actual Behavior _No response_
yindo added the 🙋‍♂️ question label 2026-02-21 20:14:33 -05:00
yindo closed this issue 2026-02-21 20:14:33 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 22, 2026):

Hi @HuYiyi-337! I'm Dosu and I’m helping the dify team.

Dify's custom tool node UI does not currently support configuring raw or plain text requestBody content, which is required by endpoints like /import. The UI only exposes parameters that can be mapped to form fields (like string, number, boolean), so there's no way to directly input a block of plain text or line-separated URLs as the request body in the workflow node. This is a known limitation and has been reported by other users as well (source).

As a workaround, you can use external tools (like curl or Postman) to call such endpoints, or, if possible, adjust your OpenAPI schema to expose the requestBody as a string parameter (though Dify's backend may still not render this as a plain text input in the UI). For now, there are no advanced options or hidden settings to inject arbitrary raw request bodies for custom tools in the UI (source).

Keep an eye on GitHub issues and release notes for updates, as this is a frequently requested feature.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 22, 2026): <!-- Greeting --> Hi @HuYiyi-337! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> Dify's custom tool node UI does not currently support configuring raw or plain text requestBody content, which is required by endpoints like /import. The UI only exposes parameters that can be mapped to form fields (like string, number, boolean), so there's no way to directly input a block of plain text or line-separated URLs as the request body in the workflow node. This is a known limitation and has been reported by other users as well ([source](https://github.com/langgenius/dify/issues/21672)). As a workaround, you can use external tools (like curl or Postman) to call such endpoints, or, if possible, adjust your OpenAPI schema to expose the requestBody as a string parameter (though Dify's backend may still not render this as a plain text input in the UI). For now, there are no advanced options or hidden settings to inject arbitrary raw request bodies for custom tools in the UI ([source](https://github.com/langgenius/dify/issues/21672)). Keep an eye on GitHub issues and release notes for updates, as this is a frequently requested feature. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/881c6ee0-b2ae-4b26-9dc6-853c7a5afd15?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Dify%27s%20custom%20tool%20node%20UI%20does%20not%20currently%20support%20configuring%20raw%20or%20plain%20text%20requestBody%20content%2C%20which%20is%20required%20by%20endpoints%20like%20/import.%20The%20UI%20only%20exposes%20parameters%20that%20can%20be%20mapped%20to%20form%20fields%20%28like%20string%2C%20number%2C%20boolean%29%2C%20so%20there%27s%20no%20way%20to%20directly%20input%20a%20block%20of%20plain%20text%20or%20line-separated%20URLs%20as%20the%20request%20body%20in%20the%20workflow%20node.%20This%20is%20a%20known%20limitation%20and%20has%20been%20reported%20by%20other%20users%20as%20well%C2%A0%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/21672%29%29.%0A%0AAs%20a%20workaround%2C%20you%20can%20use%20external%20tools%20%28like%20curl%20or%20Postman%29%20to%20call%20such%20endpoints%2C%20or%2C%20if%20possible%2C%20adjust%20your%20OpenAPI%20schema%20to%20expose%20the%20requestBody%20as%20a%20string%20parameter%20%28though%20Dify%27s%20backend%20may%20still%20not%20render%20this%20as%20a%20plain%20text%20input%20in%20the%20UI%29.%20For%20now%2C%20there%20are%20no%20advanced%20options%20or%20hidden%20settings%20to%20inject%20arbitrary%20raw%20request%20bodies%20for%20custom%20tools%20in%20the%20UI%C2%A0%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/21672%29%29.%20%0A%0AKeep%20an%20eye%20on%20GitHub%20issues%20and%20release%20notes%20for%20updates%2C%20as%20this%20is%20a%20frequently%20requested%20feature.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31403)
Author
Owner

@James-Bond123 commented on GitHub (Jan 22, 2026):

Closing this issue as it was opened by mistake. Sorry for the noise!

@James-Bond123 commented on GitHub (Jan 22, 2026): Closing this issue as it was opened by mistake. Sorry for the noise!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21843