Context
context
ContextTool — one-shot project context dump.
ContextTool
Bases: AXMTool
One-shot project context: stack, patterns, module ranking.
Registered as ast_context via axm.tools entry point.
Workspace-aware: if path is a uv workspace root, returns
workspace-level context with all packages.
Source code in packages/axm-ast/src/axm_ast/tools/context.py
name
property
Return tool name for registry lookup.
execute(*, path='.', depth=1, **kwargs)
Dump complete project context for AI agents.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to package or workspace directory. |
'.'
|
depth
|
int | None
|
Detail level (0=top-5, 1=sub-packages, 2=modules, 3+=symbols, None=full). |
1
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with project context data. |