search_docs
Search Apple Developer Documentation by semantic meaning using Xcode's local index. Retrieve full text, code examples, and match scores to answer Swift and Apple API questions accurately.
Instructions
Search Apple Developer Documentation by meaning, using Xcode's local documentation index. Returns full document text including code examples, with each result's uri and match score. Use this before answering from memory about Swift or Apple platform APIs.
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_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language or API search query. | |
| timeout | No | Seconds to wait for the bridge before failing. | |
| frameworks | No | Restrict the search to these frameworks, e.g. ['SwiftData']. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |