get_man_page
Fetch the official man page for any Linux command to clarify flags, syntax, and edge cases. Supports case-insensitive search, line limits, and offset.
Instructions
Fetches the authoritative man page for a command as plain text. command is required and validated. Read-only via man -P cat. Options: max_lines (500-10000) with a truncated flag, case-insensitive search with context_lines, and offset. Fatal if man is missing or there is no manual entry. Use when the user asks about flags, syntax, or edge cases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | line offset to start reading from (0-based) | |
| search | No | search term to grep for in the man page (case-insensitive) | |
| command | Yes | command name to get the man page for | |
| max_lines | No | maximum number of lines to return (default: 500, max: 10000) | |
| context_lines | No | number of context lines before/after each search match (default: 2 when search is used) | |
| clean_special_chars | No | clean backspace formatting characters (default: true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| command | Yes | ||
| content | Yes | ||
| truncated | No |