Find Real-World Code Examples
gt_examplesFind real-world GitHub code examples of a library or pattern, with repo links, to see how others implement it. Returns doc snippets when no GitHub token is set.
Instructions
Real-world usage of a library or pattern from public GitHub code, with repo links (needs GT_GITHUB_TOKEN, else official-docs examples). Snippets from the library's own docs: gt_snippets.
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": {
"library": "<library>"
},
"name": "gt_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | Yes | ||
| pattern | No | e.g. 'useMutation' | |
| language | No | e.g. 'typescript' | |
| maxResults | No |