Get Readme
get_readmeFetches and sanitizes README documentation from GitHub repositories or Hugging Face models/Spaces, stripping risky content and omitting giant tables to surface usage and quickstart details.
Instructions
Fetch and sanitize documentation for a GitHub repo or Hugging Face model/Space.
IMPORTANT SAFETY: Output is sanitized against prompt injection and wrapped in <untrusted_content> tags. Giant benchmark tables and YAML frontmatter blocks are omitted to prioritize Usage and Quickstart sections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identifier ('owner/repo' for GitHub, 'org/model-name' for Hugging Face). | |
| source | Yes | One of 'github', 'hf_model', or 'hf_space'. | |
| max_chars | No | Maximum characters to return (default: 8000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |