Skip to main content
Reference · Information

senkani_outline

Live Replaces Read

File-level structure: all top-level functions, classes, types. Names + line numbers only.

Signature

senkani_mcp.call(tool="senkani_outline", args={...})

Behavior

Queries `IndexEntry` for entries matching the file path. Returns names + line numbers with no bodies. ~10× smaller than reading the file.

Inputs

Name
Type
Default
Description
file
string
Absolute path.
kinds
array
all
Filter kinds: `class`, `function`, `method`, etc.

Output

Array of `{{name, kind, line_start, line_end, container}}`.

Example

{"tool":"senkani_outline","args":{"file":"src/repo.ts"}}

Details

Orders results by `line_start`. Container hierarchy preserved for nested classes/modules.

See also

Source: Sources/MCPServer/Tools/OutlineTool.swift