search_examples
Find code examples, tutorials, and technical articles to learn APIs, discover usage patterns, and solve programming problems with filtered content types and time ranges.
Instructions
Search for code examples, tutorials, and technical articles.
Optimized for finding practical examples and learning resources. Can optionally filter by
time range for the most recent content. Perfect for learning new APIs, finding usage patterns,
or discovering how others solve specific technical problems.
Content Types:
- 'code': GitHub repos, code snippets, gists, Stack Overflow code examples
- 'articles': Blog posts, tutorials, documentation, technical articles
- 'both': Mix of code and written content (default)
Time Ranges:
- 'all': Search all available content (default, recommended for best results)
- 'year', 'month', 'week', 'day': Filter to recent content only
Examples:
- search_examples("FastAPI dependency injection examples", content_type="code")
- search_examples("React hooks tutorial", content_type="articles", time_range="year")
- search_examples("Rust lifetime examples", content_type="both")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| reasoning | Yes | ||
| content_type | No | both | |
| time_range | No | all | |
| max_results | No |
Input Schema (JSON Schema)
{
"properties": {
"content_type": {
"default": "both",
"enum": [
"code",
"articles",
"both"
],
"title": "Content Type",
"type": "string"
},
"max_results": {
"default": 8,
"title": "Max Results",
"type": "integer"
},
"query": {
"title": "Query",
"type": "string"
},
"reasoning": {
"title": "Reasoning",
"type": "string"
},
"time_range": {
"default": "all",
"enum": [
"day",
"week",
"month",
"year",
"all"
],
"title": "Time Range",
"type": "string"
}
},
"required": [
"query",
"reasoning"
],
"type": "object"
}