public_api
List public API declarations in a Swift codebase to review what a module exposes and identify public declarations that no longer need to be public.
Instructions
List the declared public API surface.
Swift states access level with a keyword and SwiftKG stores it, so this is
a fact read out of the graph rather than a heuristic. Use it to review what
a module actually exposes, or to find public declarations that no longer
need to be.
:param module_path: Restrict to files under this path prefix. Empty
(default) covers the whole repository.
:param limit: Maximum declarations to return (1-1000).
:return: JSON with count and a declarations list, each carrying its
visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| module_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |