fetch_doc
Fetch a documentation page as clean Markdown, making it ready for LLM consumption. Use with search_docs URLs from approved docs.ansible.com, docs.redhat.com, or CoP raw GitHub sources.
Instructions
Fetch a docs page as clean Markdown.
Returns documentation content ready for LLM consumption. Use search_docs to discover relevant page URLs. Accepts docs.ansible.com, docs.redhat.com, or CoP good-practices raw GitHub README.adoc URLs from search_docs hits (not arbitrary raw.githubusercontent.com hosts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A docs.ansible.com, docs.redhat.com, or CoP raw GitHub README.adoc URL from search_docs hits, to fetch as markdown | |
| max_tokens | No | If set, return error instead of content when the page exceeds this token count. docs.ansible.com uses the x-markdown-tokens response header; CoP and Embed estimate tokens from the fetched body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |