genart.dev
MCP ToolsPlugin ToolsTypography

design_get_font_metrics

Get metrics (ascent, descent, x-height) for a font.

Get metrics (ascent, descent, x-height) for a font.

Plugin: Typography

Input Schema

See the Typography plugin reference for full property documentation.

ParameterTypeRequiredDescription
sketchIdstringNoTarget sketch ID. Defaults to the currently active sketch.

Additional parameters are specific to this tool. Use design_list_layers to inspect existing layers.

Output Shape

{
  "layerId": "layer_abc123",
  "name": "Typography Layer",
  "type": "typography:...",
  "index": 0
}

Side Effects

  • Modifies the active sketch's design layer stack.
  • The design composite is re-rendered to reflect the change.