Skip to content

fontlab_aidus_agentus.core.plugin_tools · declarations 001

Back to fontlab_aidus_agentus.core.plugin_tools

call_plugin async

call_plugin(ctx: AgentContext, name: str, arguments: dict[str, Any]) -> dict[str, Any]

Use ACP's extension mechanism to execute a registered plugin tool once.

get_current_glyph_info async

get_current_glyph_info(ctx: AgentContext) -> dict[str, Any]

Read metrics and properties of the currently selected glyph in FontLab.

run_fontlab_script async

run_fontlab_script(ctx: AgentContext, script: str) -> dict[str, Any]

Execute Python in the existing FontLab plugin sandbox.

set_glyph_metrics async

set_glyph_metrics(ctx: AgentContext, width: int | None = None, lsb: int | None = None, rsb: int | None = None) -> dict[str, Any]

Set advance width and sidebearings of the current glyph through the plugin.