| name | web |
| description | Fetch web pages and convert to markdown |
| user-invocable | false |
| allowed-tools | Read, Bash |
/web
Fetch one or more web pages and convert to markdown.
Usage
/web <url> [url2 ...] [-o output_dir]
Workflow
- Parse arguments. Extract
-o <dir> if present (default: output/).
- For each URL, run:
bash fetch/parsers/web.sh "<url>" "<output_dir>"
- Check exit code. On failure, read stderr and report the error.
- On success, report the output file path (last line of stdout).
Notes
- Uses
markitdown as primary converter, falls back to curl + pandoc.
- Do NOT clean up or enrich the content.