Swift Language Reference chapter
apple_swift_book_getRetrieve a chapter from The Swift Programming Language book by slug to read language guide or reference content. Use wwdc_search first to find the chapter slug.
Instructions
Retrieve a chapter from The Swift Programming Language book (docs.swift.org). Covers Language Guide (closures, concurrency, generics…) and Language Reference (grammar, declarations, attributes). Search with wwdc_search first to find the slug.
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": {
"chapter": "<chapter>"
},
"name": "apple_swift_book_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format | markdown |
| chapter | Yes | Chapter slug, e.g. 'concurrency', 'generics', 'closures'. Use wwdc_search to discover slugs. |