search_apple_docs
Search Apple Developer Documentation for specific APIs, frameworks, guides, and code examples to locate the references and technical details you need.
Instructions
Search Apple Developer Documentation for APIs, frameworks, guides, and samples. Best for finding specific APIs, classes, or methods. Latency: typically 5-25 seconds (median about 10) because Apple streams the full result set; repeated identical queries are cached for 10 minutes. For browsing sample code projects, use get_sample_code. For WWDC videos, use the dedicated WWDC tools (list_wwdc_videos, search_wwdc_content).
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": {
"query": "<query>"
},
"name": "search_apple_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of content to filter. Use "all" for comprehensive results, "documentation" for API references/guides, "sample" for code snippets. Note: "sample" returns individual code examples, not full projects. For complete sample projects, use get_sample_code instead. Default: "all". | |
| query | Yes | Search query for Apple Developer Documentation. Tips: Use specific API names (e.g., "UIViewController"), framework names (e.g., "SwiftUI"), or technical terms. Avoid generic terms like "how to" or "tutorial". Examples: "NSPredicate", "SwiftUI List", "Core Data migration", "URLSession authentication". | |
| select | No | Jev semantic selection: score the results against the query and return only the best results (1-20), each with a relevance score. Default: on when OPENROUTER_API_KEY or TYPESAFE_API_KEY (or APPLE_DOCS_MCP_JEV_PROVIDER and its key) is set, off otherwise; APPLE_DOCS_MCP_JEV_RERANK=0 forces it off. select: true while it is off is an error. Adds a Jev provider call (up to about 15 s on the classic route; relevance route with select: up to about 2 minutes). | |
| ranking | No | Ranking route. "classic" = the original search and grouping. "relevance" = wide recall (expanded sub-queries and pages in the same documentation hierarchy) then Jev; relevance route with select: up to about 2 minutes. Default: APPLE_DOCS_MCP_RANKING, else "relevance". | |
| maxResults | No | With select on: the most results to return (1-20, default 5; use 20 for lists of members or methods). Ignored with select off. |