Agent Skills: Web Fetch

HTTP requests (GET/POST/PUT/DELETE) to URLs. Use for API calls, endpoint testing, or basic scraping.

UncategorizedID: ignaciosua/copilot-skills-repo/web-fetch

Install this agent skill to your local

pnpm dlx add-skill https://github.com/ignaciosua/copilot-skills-repo/tree/HEAD/skills/web-fetch

Skill Files

Browse the full folder contents for web-fetch.

Download Skill

Loading file tree…

skills/web-fetch/SKILL.md

Skill Metadata

Name
web-fetch
Description
HTTP requests (GET/POST/PUT/DELETE) to URLs. Use for API calls, endpoint testing, or basic scraping.

Web Fetch

Makes HTTP requests and returns response content.

Usage

python ~/.copilot/skills/web-fetch/web_fetch.py <url> [options]

Options

| Option | Description | Default | |--------|-------------|---------| | --method | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD | GET | | -H | Add header (repeatable) | - | | --data | JSON body for POST/PUT | - | | --timeout | Request timeout in seconds | 30 | | --pretty | Format JSON output nicely | false |

Output

JSON with:

  • success: true/false
  • status_code: HTTP status code
  • headers: Response headers
  • content: Response body (parsed JSON or text)
  • content_type: "json" or "text"
  • error: Error message if failed

Examples

Simple GET

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/zen

GET with Headers

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/user \
  -H "Authorization: token YOUR_TOKEN"

POST with JSON Data

python ~/.copilot/skills/web-fetch/web_fetch.py https://httpbin.org/post \
  --method POST \
  --data '{"name": "test", "value": 123}'

Pretty Output

python ~/.copilot/skills/web-fetch/web_fetch.py https://api.github.com/repos/python/cpython --pretty