code_outline
Analyzes C#, Python, TypeScript, and JavaScript source files to return structured code outlines—namespaces, types, members, signatures, and line ranges—without loading full content.
Instructions
PREFERRED METHOD: Analyzes source file(s) (C#, Python, TypeScript and JavaScript, including .tsx and .jsx) and returns structured metadata WITHOUT loading full content. Returns: namespace (module in Python and TypeScript), using directives (imports), types (classes, interfaces, records, enums, type aliases...), their members with signatures, attributes (decorators) and line ranges, module-level functions and variables, and the file classification. In TypeScript and JavaScript the functions declared inside a function (a React component's handlers and useCallback/useMemo values, a hook's helpers) are listed indented under it as local members. BATCH MODE: pass 'File1.cs,File2.py,File3.tsx' (comma-separated, NO SPACES) to analyze several files in one call, of any language. Use this BEFORE code_method to understand the structure, and instead of code_read for C#, Python, TypeScript and JavaScript files: it costs far fewer tokens than the full text. For other files use code_read. Set includePrivateMembers=true when debugging internals, analyzing dependency injection (constructors), refactoring private methods or needing the full class architecture; the default shows the public API only. The file is parsed from disk on every call, so the result is never stale.
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": {
"workspace": "<workspace>",
"relativeFilePath": "<relativeFilePath>"
},
"name": "code_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the code guide first in the result. Use on your first code call, or when told it changed. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) | |
| relativeFilePath | Yes | Path(s) of source file(s) (.cs, .py, .pyi, .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs) relative to the workspace root. Single: 'Services/UserService.cs' | Batch: 'Services/UserService.cs,app/models/user.py,src/components/Table.tsx' (NO SPACES), any mix of languages | |
| includePrivateMembers | No | Optional: include non-public members (default false, public only) |