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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "public_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| module_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |