Smelt
smelt
SmeltTool — MCP entry point for axm-smelt.
SmeltTool
Bases: AXMTool
Compact text/data for LLM consumption.
Input is resolved in order: caller-provided data, input_path, then
non-interactive standard input.
Registered as smelt via axm.tools entry point.
Source code in packages/axm-smelt/src/axm_smelt/tools/smelt.py
name
property
Return tool name for registry lookup.
execute(*, data='', input_path=None, strategies=None, preset=None, **kwargs)
Run the smelt compaction pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
JsonValue
|
Text or JSON data to compact. |
''
|
input_path
|
str | None
|
Optional UTF-8 input file used when data is empty. |
None
|
strategies
|
list[str] | None
|
Optional list of strategy names. |
None
|
preset
|
str | None
|
Optional preset name. |
None
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with compacted output and metrics. |