gh_save_copy
Saves a Grasshopper definition as a new .gh or .ghx file without overwriting existing files unless overwrite is enabled.
Instructions
Save the definition as a new .gh or .ghx file written by Grasshopper itself. Refuses to overwrite unless overwrite is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "gh_save_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| overwrite | No |