Git Documentation
git_docsSearch official Git documentation to find commands and concepts by keyword, or fetch the full man page for a specific Git command when you need usage details and options.
Instructions
Search and browse official Git documentation from git-scm.com. Use action="search" to find relevant commands and concepts by keyword. Use action="man" to fetch the full man page for a specific git command (e.g. query="commit" fetches the git-commit man page). Useful for answering questions about how to use git commands, understanding options, and discovering the right git command for a task.
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": {
"action": "<action>",
"query": "<query>"
},
"name": "git_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | For action="search": search terms (e.g. "undo last commit"). For action="man": git command name without "git-" prefix (e.g. "commit", "rebase", "merge"). | |
| action | Yes | ||
| response_format | No | Output format for the response. | markdown |