Skip to content

fix(cli): remove http_request tool, keep only fetch_url#1468

Open
Copilot wants to merge 3 commits intomainfrom
copilot/remove-http-request-tool
Open

fix(cli): remove http_request tool, keep only fetch_url#1468
Copilot wants to merge 3 commits intomainfrom
copilot/remove-http-request-tool

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

Removes http_request from the CLI agent's tool set, leaving fetch_url as the sole URL-fetching tool.

Changes

  • tools.py – Deleted http_request function
  • main.py / non_interactive.py – Removed http_request from imports and tools list
  • widgets/messages.py – Removed http_request from KNOWN_TOOL_NAMES and the formatter dispatch table
  • tool_display.py – Removed http_request display branch
  • system_prompt.md – Removed ### http_request section
  • test_exception_handling.py – Removed http_request tests and now-unused imports

⚠️ Note: This is a breaking change for any workflow relying on the http_request tool being available in the CLI agent.


AI-assisted contribution: this PR was authored with the help of GitHub Copilot.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

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
@eyurtsev Eugene Yurtsev (eyurtsev) marked this pull request as ready for review February 23, 2026 20:54
Copilot AI review requested due to automatic review settings February 23, 2026 20:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_request function 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_request handling
  • 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.

@github-actions github-actions bot added the cli Related to `deepagents-cli` label Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to `deepagents-cli`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants