Expand description
Shared command/parameter model (OpenAPI + MCP + GraphQL).
Structs§
Enums§
- List
Detail - List / help JSON detail level.
- Param
Location - Param
Type - CLI parameter type:
Nonemeans booleanstore_trueflag (Pythonpython_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
sto at mostmax_charsUnicode scalars, preferring a word boundary.