frame0-mcp-server

v0.12.0
frame0-mcp-server Checked 5 days ago Published 5 months ago

[![smithery badge](https://smithery.ai/badge/@niklauslee/frame0-mcp-server)](https://smithery.ai/server/@niklauslee/frame0-mcp-server)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_frame

Create a frame shape in Frame0. Must add a new page before you create a new frame.

ParameterTypeDescription
frameType *stringType of the frame shape to create.
name *stringName of the frame shape.
fillColorstringBackground color in hex code of the frame shape.

create_rectangle

Create a rectangle shape in Frame0.

ParameterTypeDescription
height *numberHeight of the rectangle shape.
left *numberLeft position of the rectangle shape in the absolute coordinate system.
name *stringName of the rectangle shape.
top *numberTop position of the rectangle shape in the absolute coordinate system.
width *numberWidth of the rectangle shape.
cornersarrayCorner radius of the rectangle shape. Must be in the form of [left-top, right-top, right-bottom, left-bottom].
fillColorstringFill color in hex code of the rectangle shape.
parentIdstringID of the parent shape. Typically frame ID.
strokeColorstringStroke color in hex code of the rectangle shape.

create_ellipse

Create an ellipse shape in Frame0.

ParameterTypeDescription
height *numberHeight of the ellipse shape.
left *numberLeft position of the ellipse shape in the absolute coordinate system.
name *stringName of the ellipse shape.
top *numberTop position of the ellipse shape in the absolute coordinate system.
width *numberWidth of the ellipse shape.
fillColorstringFill color in hex code of the ellipse shape.
parentIdstringID of the parent shape. Typically frame ID.
strokeColorstringStroke color in hex code of the ellipse shape.

create_text

Create a text shape in Frame0.

ParameterTypeDescription
left *numberLeft position of the text shape in the absolute coordinate system. Position need to be adjusted using 'move_shape' tool based on the width and height of the created text.
name *stringName of the text shape.
text *stringPlain text content to display of the text shape. Use newline character (0x0A) instead of '\n' for new line. Dont's use HTML and CSS code in the text content.
top *numberTop position of the text shape in the absolute coordinate system. Position need to be adjusted using 'move_shape' tool based on the width and height of the created text.
fontColorstringFont color in hex code of the text shape.
fontSizenumberFont size of the text shape.
parentIdstringID of the parent shape. Typically frame ID.
typestringType of the text shape to create. If type is 'paragraph', text width need to be updated using 'update_shape' tool.
widthnumberWidth of the text shape. if the type is 'paragraph' recommend to set width.

create_line

Create a line shape in Frame0.

ParameterTypeDescription
name *stringName of the line shape.
x1 *numberX coordinate of the first point.
x2 *numberX coordinate of the second point.
y1 *numberY coordinate of the first point.
y2 *numberY coordinate of the second point.
parentIdstringID of the parent shape. Typically frame ID.
strokeColorstringStroke color in hex code of the line shape. (e.g., black) - temp string type

create_polygon

Create a polygon or polyline shape in Frame0.

ParameterTypeDescription
name *stringName of the polygon shape.
points *arrayArray of points defining the polygon shape.
closedbooleanWhether the polygon shape is closed or not. Default is true.
fillColorstringFill color in hex code of the polygon shape. (e.g., white) - temp string type
parentIdstringID of the parent shape. Typically frame ID.
strokeColorstringStroke color in hex code of the line shape. (e.g., black) - temp string type

create_connector

Create a connector shape in Frame0.

ParameterTypeDescription
endId *stringID of the end shape.
name *stringName of the line shape.
startId *stringID of the start shape.
endArrowheadstringEnd arrowhead of the line shape.
parentIdstringID of the parent shape. Typically frame ID.
startArrowheadstringStart arrowhead of the line shape.
strokeColorstringStroke color in hex code of the line. shape

create_icon

Create an icon shape in Frame0.

ParameterTypeDescription
left *numberLeft position of the icon shape in the absolute coordinate system.
name *stringThe name of the icon shape to create. The name should be one of the result of 'get_available_icons' tool.
size *stringSize of the icon shape. 'small' is 16 x 16, 'medium' is 24 x 24, 'large' is 32 x 32, 'extra-large' is 48 x 48.
top *numberTop position of the icon shape in the absolute coordinate system.
parentIdstringID of the parent shape. Typically frame ID.
strokeColorstringStroke color in hex code of the icon shape.

create_image

Create an image shape in Frame0.

ParameterTypeDescription
imageData *stringBase64 encoded image data.
left *numberLeft position of the image shape in the absolute coordinate system.
mimeType *stringMIME type of the image.
name *stringThe name of the image shape to create.
top *numberTop position of the image shape in the absolute coordinate system.
parentIdstringID of the parent shape. Typically frame ID.

update_shape

Update properties of a shape in Frame0.

ParameterTypeDescription
shapeId *stringID of the shape to update
cornersarrayCorner radius of the rectangle shape. Must be in the form of [left-top, right-top, right-bottom, left-bottom].
fillColorstringFill color in hex code of the shape.
fontColorstringFont color in hex code of the text shape.
fontSizenumberFont size of the text shape.
heightnumberHeight of the shape.
namestringName of the shape.
strokeColorstringStroke color in hex code of the shape.
textstringPlain text content to display of the text shape. Don't include escape sequences and HTML and CSS code in the text content.
widthnumberWidth of the shape.

duplicate_shape

Duplicate a shape in Frame0.

ParameterTypeDescription
shapeId *stringID of the shape to duplicate
dxnumberDelta X value by which the duplicated shape moves.
dynumberDelta Y value by which the duplicated shape moves.
parentIdstringID of the parent shape where the duplicated shape will be added. If not provided, the duplicated shape will be added to the current page.

delete_shape

Delete a shape in Frame0.

ParameterTypeDescription
shapeId *stringID of the shape to delete

search_icons

Search icon shapes available in Frame0.

ParameterTypeDescription
keywordstringSearch keyword to filter icon by name or tags (case-insensitive)

move_shape

Move a shape in Frame0.

ParameterTypeDescription
dx *numberDelta X
dy *numberDelta Y
shapeId *stringID of the shape to move

align_shapes

Align shapes in Frame0.

ParameterTypeDescription
alignType *stringType of the alignment to apply.
shapeIdArray *arrayArray of shape IDs to align

group

Group shapes in Frame0.

ParameterTypeDescription
shapeIdArray *arrayArray of shape IDs to group
parentIdstringID of the parent shape where the group will be added. If not provided, the group will be added to the current page.

ungroup

Ungroup a group in Frame0.

ParameterTypeDescription
groupId *stringID of the group to ungroup

export_shape_as_image

Export shape as image in Frame0.

ParameterTypeDescription
shapeId *stringID of the shape to export
formatstringImage format to export.

add_page

Add a new page in Frame0. The added page becomes the current page.

ParameterTypeDescription
name *stringName of the page to add.

update_page

Update a page in Frame0.

ParameterTypeDescription
name *stringName of the page.
pageId *stringID of the page to update.

duplicate_page

Duplicate a page in Frame0.

ParameterTypeDescription
pageId *stringID of the page to duplicate
namestringName of the duplicated page.

delete_page

Delete a page in Frame0.

ParameterTypeDescription
pageId *stringID of the page to delete

get_current_page_id

Get ID of the current page in Frame0.

set_current_page_by_id

Set current page by ID in Frame0.

ParameterTypeDescription
pageId *stringID of the page to set as current page.

get_page

Get page data in Frame0.

ParameterTypeDescription
exportShapesbooleanExport shapes data included in the page.
pageIdstringID of the page to get data. If not provided, the current page data is returned.

get_all_pages

Get all pages data in Frame0.

ParameterTypeDescription
exportShapesbooleanExport shapes data included in the page data.

export_page_as_image

Export page as image in Frame0.

ParameterTypeDescription
formatstringImage format to export.
pageIdstringID of the page to export. If not provided, the current page is used.