Fetch Doc
fetch_docFetch Ansible or Red Hat documentation pages as clean Markdown ready for LLM consumption, using page URLs returned by search_docs.
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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "fetch_doc"
}
}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 |