iflow_mcp_jingcheng_chen_rhinomcp

v0.1.3.6
iflow_mcp_jingcheng_chen_rhinomcp Checked 3 days ago Published 11 months ago

Rhino integration through the Model Context Protocol

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

create_object

Create a new object in the Rhino document. Parameters: - type: Object type ("POINT", "LINE", "POLYLINE", "CIRCLE", "ARC", "ELLIPSE", "CURVE", "BOX", "SPHERE", "CONE", "CYLINDER", "PIPE", "SURFACE") - name: Optional name for the object - color: Optional [r, g, b] color values (0-255) for the object - params: Type-specific parameters dictionary (see documentation for each type) - translation: Optional [x, y, z] translation vector - rotation: Optional [x, y, z] rotation in radians - scale: Optional [x, y, z] scale factors The params dictionary is typ…

ParameterTypeDescription
colorarray
namestring
paramsobject
rotationarray
scalearray
translationarray
typestring

create_objects

Create multiple objects at once in the Rhino document. Parameters: - objects: A list of dictionaries, each containing the parameters for a single object Each object should have the following values: - type: Object type ("POINT", "LINE", "POLYLINE", "BOX", "SPHERE", etc.) - name: Optional name for the object - color: Optional [r, g, b] color values (0-255) for the object - params: Type-specific parameters dictionary (see documentation for each type in create_object() function) - translation: Optional [x, y, z] translation vector - rotation: Optiona…

ParameterTypeDescription
objects *array

delete_object

Delete an object from the Rhino document. Parameters: - id: The id of the object to delete - name: The name of the object to delete

ParameterTypeDescription
allboolean
idstring
namestring

get_document_info

Get detailed information about the current Rhino document

get_object_info

Get detailed information about a specific object in the Rhino document. The information contains the object's id, name, type, all custom user attributes and geometry info. You can either provide the id or the object_name of the object to get information about. If both are provided, the id will be used. Returns: - A dictionary containing the object's information - The dictionary will have the following keys: - "id": The id of the object - "name": The name of the object - "type": The type of the object - "layer": The layer of the obje…

ParameterTypeDescription
idstring
namestring

get_selected_objects_info

Get detailed information about the currently selected objects in Rhino Parameters: - include_attributes: Whether to include the custom user attributes of the objects in the response

ParameterTypeDescription
include_attributesboolean

modify_object

Modify an existing object in the Rhino document. Parameters: - id: The id of the object to modify - name: The name of the object to modify - new_name: Optional new name for the object - new_color: Optional [r, g, b] color values (0-255) for the object - translation: Optional [x, y, z] translation vector - rotation: Optional [x, y, z] rotation in radians - scale: Optional [x, y, z] scale factors - visible: Optional boolean to set visibility

ParameterTypeDescription
idstring
namestring
new_colorarray
new_namestring
rotationarray
scalearray
translationarray
visibleboolean

modify_objects

Create multiple objects at once in the Rhino document. Parameters: - objects: A List of objects, each containing the parameters for a single object modification - all: Optional boolean to modify all objects, if true, only one object is required in the objects dictionary Each object can have the following parameters: - id: The id of the object to modify - new_color: Optional [r, g, b] color values (0-255) for the object - translation: Optional [x, y, z] translation vector - rotation: Optional [x, y, z] rotation in radians - scale: Optional [x, y,…

ParameterTypeDescription
objects *array
allboolean

execute_rhinoscript_python_code

Execute arbitrary RhinoScript code in Rhino. Parameters: - code: The RhinoScript code to execute GUIDE: 1. To get any output from the script, you should use the python `print` function. 2. You can get a list of all possible functions names that can be used by using the get_rhinoscript_python_function_names tool. 3. You can get the details of a specific function by using the get_rhinoscript_python_code_guide tool. Example: - Your task is: "Create a loft surface between two curves." - get_rhinoscript_python_function_names(["surface", "curve"]…

ParameterTypeDescription
code *string

get_rhinoscript_python_function_names

Return the RhinoScriptsyntax Function Names for specified categories. Parameters: - categories: A list of categories of the RhinoScriptsyntax to get. Returns: - A list of function names that are available in the specified categories. The following categories are available: - application - block - compat - curve - dimension - document - geometry - grips - group - hatch - layer - light - line - linetype - material - mesh - object - plane - pointvector - selection - surface - toolba…

ParameterTypeDescription
categories *array

get_rhinoscript_python_code_guide

Return the RhinoScriptsyntax Details for a specific function. Parameters: - function_name: The name of the function to get the details for. You should get the function names first by using the get_rhinoscript_python_function_names tool.

ParameterTypeDescription
function_name *string

select_objects

Select objects in the Rhino document. Parameters: - filters: A dictionary containing the filters. The filters parameter is necessary, unless it's empty, in which case all objects will be selected. - filters_type: The type of the filters, it's "and" or "or", default is "and" Note: The filter value is always a list, even if it's a single value. The reason is that a filter can contain multiple values, for example when we query by a attribute that has EITHER value1 OR value2. The filters dictionary can contain the following keys: - name: The name of the obje…

ParameterTypeDescription
filtersobject
filters_typestring

create_layer

Create a new layer in the Rhino document. Parameters: - name: The name of the new layer. If omitted, Rhino automatically generates the layer name. - color: Optional [r, g, b] color values (0-255) for the layer - parent: Optional name of the new layer's parent layer. If omitted, the new layer will not have a parent layer. Returns: A message indicating the created layer name. Examples of params: - name: "Layer 1" - color: [255, 0, 0] - parent: "Default"

ParameterTypeDescription
colorarray
namestring
parentstring

get_or_set_current_layer

Get or set the current layer in the Rhino document. If name is provided, it will try to set the current layer to the layer with the given name. If guid is provided, it will try to set the current layer to the layer with the given guid. If neither is provided, it will return the current layer. Parameters: - name: The name of the layer to set the current layer to. - guid: The guid of the layer to set the current layer to. Returns: A message indicating the current layer. Examples of params: - name: "Layer 1" - guid: "00000000-0000-00…

ParameterTypeDescription
guidstring
namestring

delete_layer

Delete a layer in the Rhino document. If name is provided, it will try to delete the layer with the given name. If guid is provided, it will try to delete the layer with the given guid. If neither is provided, it will return an error. Parameters: - name: The name of the layer to delete. - guid: The guid of the layer to delete. Returns: A message indicating the layer was deleted. Examples of params: - name: "Layer 1" - guid: "00000000-0000-0000-0000-000000000000"

ParameterTypeDescription
guidstring
namestring