generate_swift_docs
Generate Swift Package documentation with DocC, saving to a specified directory. Optionally open in browser or prepare for static hosting.
Instructions
Generates documentation for a Swift Package using DocC.
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": {
"outputPath": "<outputPath>"
},
"name": "generate_swift_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Directory where the generated documentation will be saved | |
| openInBrowser | No | Open the generated documentation in a browser after generation (default: false) | |
| hostingBasePath | No | Base path for hosting the documentation (e.g., '/docs') | |
| transformForStaticHosting | No | Transform the documentation for static hosting (default: true) |