Skip to main content

Module model

Module model 

Source
Expand description

Shared command/parameter model (OpenAPI + MCP + GraphQL).

Structs§

BakeConfig
CommandDef
ParamDef

Enums§

ListDetail
List / help JSON detail level.
ParamLocation
ParamType
CLI parameter type: None means boolean store_true flag (Python python_type is None).

Functions§

command_to_brief_json
Name + truncated description for progressive discovery.
command_to_json
Serialize a command for --list --json --detail full / TOOL --help --json.
commands_to_json
Serialize commands at the requested detail level.
names_list_json
Flat name array, or prefix-compressed object when that saves space.
param_to_json
Serialize a parameter for --list --json.
schema_type_to_python
Map JSON Schema type to CLI param type + help suffix (Python schema_type_to_python).
truncate_at_word
Truncate s to at most max_chars Unicode scalars, preferring a word boundary.