jishi-mcp-server
v1.2.0MCP Server for JiShi Design
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_script
Execute JavaScript code in the JiShi Design plugin context. Use 'jsDesign' global object. The code should return a value (it will be wrapped in a function).
| Parameter | Type | Description |
|---|---|---|
code * | string | The JavaScript code to execute. |
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
get_selection
Get the current selection in the editor, including detailed properties and all children recursively.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
includeChildren | boolean | Whether to include children. Default is true. |
maxDepth | number | Max recursion depth. Default is 12. |
maxNodes | number | Max nodes to serialize. Default is 2000. |
get_node_children
Get all children nodes of a specific node (by name or ID).
| Parameter | Type | Description |
|---|---|---|
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
id | string | The ID of the node. |
includeChildren | boolean | Whether to include children. Default is true. |
maxDepth | number | Max recursion depth. Default is 12. |
maxNodes | number | Max nodes to serialize. Default is 2000. |
name | string | The name of the node to search for. |
download_icons
Download icon nodes as SVG. Uses selection if nodeIds not provided.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
contentsOnly | boolean | Whether to export only contents. Default is true. |
nodeIds | array | Node IDs to export as SVG. Defaults to current selection. |
svgIdAttribute | boolean | Add ID attribute for SVG. Default is false. |
svgOutlineText | boolean | Outline text for SVG. Default is true. |
svgSimplifyStroke | boolean | Simplify stroke for SVG. Default is true. |
useAbsoluteBounds | boolean | Whether to use absolute bounds. Default is false. |
get_page_nodes
Get all top-level nodes (frames/artboards) in the current page. Useful for discovering available nodes before using get_node_children or get_selection.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
list_plugin_clients
List connected JiShi plugin clients for multiplexing.
save_image
Export a node as an image. If savePath is provided, saves to that path on the server. Otherwise triggers download in the browser.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Optional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document). |
filename | string | Custom filename. Defaults to node name + format extension. |
format | string | The format to export to. Default is PNG. |
nodeId | string | The ID of the node to export. If not provided, exports the currently selected node. |
savePath | string | Full file path to save the image (e.g., '/Users/name/Desktop/image.png'). If provided, saves to this path instead of browser download. |
scale | number | Scale factor (e.g., 2 for 2x). Default is 1. Only for PNG/JPG. |