web-fetch
SKILL.md
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/falsestatus_code: HTTP status codeheaders: Response headerscontent: 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