Skip to content

fontlab_remopy.mcp.compat · declarations 001

Back to fontlab_remopy.mcp.compat

field

field(model: Any, snake: str, camel: str) -> Any

Read a protocol field: v2 models use snake_case, v1 models camelCase.

is_error

is_error(result: Any) -> bool

next_cursor

next_cursor(page: Any) -> str | None

refuse_unknown

refuse_unknown(name: str, schema: Any, arguments: dict[str, Any]) -> None

Raise ValueError naming the unknown and the allowed arguments.

tool_schema

tool_schema(tool: Any) -> Any

A Tool's input schema (v2 input_schema, v1 inputSchema).

unknown_arguments

unknown_arguments(schema: Any, arguments: dict[str, Any]) -> list[str]

Argument names a strict schema does not declare; [] when anything goes.

FontLab silently drops unknown names, so an absent additionalProperties counts as strict. Only absent or false is strict; true or a schema such as {} admits any name.

unwrap

unwrap(message: Any) -> Any

The JSON-RPC message inside a SessionMessage (v1 wraps it in a RootModel).

wire

wire(model: Any) -> dict[str, Any]

Wire-format (camelCase) dump on both SDK lines.