get_man_page
Fetch a command's official man page as plain text to answer questions about flags, syntax, and edge cases.
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.
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": {
"command": "<command>"
},
"name": "get_man_page"
}
}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 |