frame0-mcp-server
v0.12.0[](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.
| Parameter | Type | Description |
|---|---|---|
frameType * | string | Type of the frame shape to create. |
name * | string | Name of the frame shape. |
fillColor | string | Background color in hex code of the frame shape. |
create_rectangle
Create a rectangle shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
height * | number | Height of the rectangle shape. |
left * | number | Left position of the rectangle shape in the absolute coordinate system. |
name * | string | Name of the rectangle shape. |
top * | number | Top position of the rectangle shape in the absolute coordinate system. |
width * | number | Width of the rectangle shape. |
corners | array | Corner radius of the rectangle shape. Must be in the form of [left-top, right-top, right-bottom, left-bottom]. |
fillColor | string | Fill color in hex code of the rectangle shape. |
parentId | string | ID of the parent shape. Typically frame ID. |
strokeColor | string | Stroke color in hex code of the rectangle shape. |
create_ellipse
Create an ellipse shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
height * | number | Height of the ellipse shape. |
left * | number | Left position of the ellipse shape in the absolute coordinate system. |
name * | string | Name of the ellipse shape. |
top * | number | Top position of the ellipse shape in the absolute coordinate system. |
width * | number | Width of the ellipse shape. |
fillColor | string | Fill color in hex code of the ellipse shape. |
parentId | string | ID of the parent shape. Typically frame ID. |
strokeColor | string | Stroke color in hex code of the ellipse shape. |
create_text
Create a text shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
left * | number | Left 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 * | string | Name of the text shape. |
text * | string | Plain 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 * | number | Top 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. |
fontColor | string | Font color in hex code of the text shape. |
fontSize | number | Font size of the text shape. |
parentId | string | ID of the parent shape. Typically frame ID. |
type | string | Type of the text shape to create. If type is 'paragraph', text width need to be updated using 'update_shape' tool. |
width | number | Width of the text shape. if the type is 'paragraph' recommend to set width. |
create_line
Create a line shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the line shape. |
x1 * | number | X coordinate of the first point. |
x2 * | number | X coordinate of the second point. |
y1 * | number | Y coordinate of the first point. |
y2 * | number | Y coordinate of the second point. |
parentId | string | ID of the parent shape. Typically frame ID. |
strokeColor | string | Stroke color in hex code of the line shape. (e.g., black) - temp string type |
create_polygon
Create a polygon or polyline shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the polygon shape. |
points * | array | Array of points defining the polygon shape. |
closed | boolean | Whether the polygon shape is closed or not. Default is true. |
fillColor | string | Fill color in hex code of the polygon shape. (e.g., white) - temp string type |
parentId | string | ID of the parent shape. Typically frame ID. |
strokeColor | string | Stroke color in hex code of the line shape. (e.g., black) - temp string type |
create_connector
Create a connector shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
endId * | string | ID of the end shape. |
name * | string | Name of the line shape. |
startId * | string | ID of the start shape. |
endArrowhead | string | End arrowhead of the line shape. |
parentId | string | ID of the parent shape. Typically frame ID. |
startArrowhead | string | Start arrowhead of the line shape. |
strokeColor | string | Stroke color in hex code of the line. shape |
create_icon
Create an icon shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
left * | number | Left position of the icon shape in the absolute coordinate system. |
name * | string | The name of the icon shape to create. The name should be one of the result of 'get_available_icons' tool. |
size * | string | Size 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 * | number | Top position of the icon shape in the absolute coordinate system. |
parentId | string | ID of the parent shape. Typically frame ID. |
strokeColor | string | Stroke color in hex code of the icon shape. |
create_image
Create an image shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
imageData * | string | Base64 encoded image data. |
left * | number | Left position of the image shape in the absolute coordinate system. |
mimeType * | string | MIME type of the image. |
name * | string | The name of the image shape to create. |
top * | number | Top position of the image shape in the absolute coordinate system. |
parentId | string | ID of the parent shape. Typically frame ID. |
update_shape
Update properties of a shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
shapeId * | string | ID of the shape to update |
corners | array | Corner radius of the rectangle shape. Must be in the form of [left-top, right-top, right-bottom, left-bottom]. |
fillColor | string | Fill color in hex code of the shape. |
fontColor | string | Font color in hex code of the text shape. |
fontSize | number | Font size of the text shape. |
height | number | Height of the shape. |
name | string | Name of the shape. |
strokeColor | string | Stroke color in hex code of the shape. |
text | string | Plain text content to display of the text shape. Don't include escape sequences and HTML and CSS code in the text content. |
width | number | Width of the shape. |
duplicate_shape
Duplicate a shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
shapeId * | string | ID of the shape to duplicate |
dx | number | Delta X value by which the duplicated shape moves. |
dy | number | Delta Y value by which the duplicated shape moves. |
parentId | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
shapeId * | string | ID of the shape to delete |
search_icons
Search icon shapes available in Frame0.
| Parameter | Type | Description |
|---|---|---|
keyword | string | Search keyword to filter icon by name or tags (case-insensitive) |
move_shape
Move a shape in Frame0.
| Parameter | Type | Description |
|---|---|---|
dx * | number | Delta X |
dy * | number | Delta Y |
shapeId * | string | ID of the shape to move |
align_shapes
Align shapes in Frame0.
| Parameter | Type | Description |
|---|---|---|
alignType * | string | Type of the alignment to apply. |
shapeIdArray * | array | Array of shape IDs to align |
group
Group shapes in Frame0.
| Parameter | Type | Description |
|---|---|---|
shapeIdArray * | array | Array of shape IDs to group |
parentId | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
groupId * | string | ID of the group to ungroup |
set_link
Set a link from a shape to a URL or a page in Frame0.
| Parameter | Type | Description |
|---|---|---|
linkType * | string | Type of the link to set. |
shapeId * | string | ID of the shape to set link |
pageId | string | ID of the page to set. Required if linkType is 'page'. |
url | string | URL to set. Required if linkType is 'web'. |
export_shape_as_image
Export shape as image in Frame0.
| Parameter | Type | Description |
|---|---|---|
shapeId * | string | ID of the shape to export |
format | string | Image format to export. |
add_page
Add a new page in Frame0. The added page becomes the current page.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the page to add. |
update_page
Update a page in Frame0.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the page. |
pageId * | string | ID of the page to update. |
duplicate_page
Duplicate a page in Frame0.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | ID of the page to duplicate |
name | string | Name of the duplicated page. |
delete_page
Delete a page in Frame0.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | ID of the page to set as current page. |
get_page
Get page data in Frame0.
| Parameter | Type | Description |
|---|---|---|
exportShapes | boolean | Export shapes data included in the page. |
pageId | string | ID of the page to get data. If not provided, the current page data is returned. |
get_all_pages
Get all pages data in Frame0.
| Parameter | Type | Description |
|---|---|---|
exportShapes | boolean | Export shapes data included in the page data. |
export_page_as_image
Export page as image in Frame0.
| Parameter | Type | Description |
|---|---|---|
format | string | Image format to export. |
pageId | string | ID of the page to export. If not provided, the current page is used. |