fix(cli): remove http_request tool, keep only fetch_url#1468
Open
fix(cli): remove http_request tool, keep only fetch_url#1468
Conversation
Co-authored-by: eyurtsev <[email protected]>
Copilot
AI
changed the title
[WIP] Remove http_request tool from CLI and retain fetch_url
fix(cli): remove http_request tool, keep only fetch_url
Feb 20, 2026
Copilot started reviewing on behalf of
Eugene Yurtsev (eyurtsev)
February 23, 2026 20:54
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the http_request tool from the DeepAgents CLI, consolidating URL-fetching functionality under the single fetch_url tool. The fetch_url tool provides similar functionality but with a more specific purpose: fetching web page content and converting it to markdown format, whereas http_request was a more general HTTP client tool supporting various HTTP methods and raw JSON/text responses.
Changes:
- Removed
http_requestfunction implementation and all its references from the codebase - Updated tool imports and tool lists in interactive and non-interactive CLI modes
- Cleaned up UI components (widgets, display logic) to remove
http_requesthandling - Removed documentation and tests related to
http_request
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tools.py |
Removed the complete http_request function implementation (75 lines) |
main.py |
Removed http_request from imports and tools list used in interactive mode |
non_interactive.py |
Removed http_request from imports and tools list used in non-interactive mode |
widgets/messages.py |
Removed http_request from KNOWN_TOOL_NAMES and formatter dispatch table, updated comments |
tool_display.py |
Removed http_request display formatting logic |
system_prompt.md |
Removed ### http_request documentation section |
test_exception_handling.py |
Removed two test methods for http_request and cleaned up unused imports (pytest, requests) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
http_requestfrom the CLI agent's tool set, leavingfetch_urlas the sole URL-fetching tool.Changes
tools.py– Deletedhttp_requestfunctionmain.py/non_interactive.py– Removedhttp_requestfrom imports and tools listwidgets/messages.py– Removedhttp_requestfromKNOWN_TOOL_NAMESand the formatter dispatch tabletool_display.py– Removedhttp_requestdisplay branchsystem_prompt.md– Removed### http_requestsectiontest_exception_handling.py– Removedhttp_requesttests and now-unused imports💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.