Resize a pattern
resize_patternRescales a library pattern, or a design of a given size, to a new width or height with the proportions kept. Returns the new dimensions, the number of printed A4 and US Letter sheets and, for a library pattern, the yarn at the new size.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resize_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Same value as pattern. | |
| unit | No | Unit of the sizes; the default is cm. | |
| width | No | Current width of a design that is not a library pattern, in the chosen unit. | |
| height | No | Current height of a design that is not a library pattern, in the chosen unit. | |
| pattern | No | Library pattern id such as cat or sunflower, or its name. | |
| new_width | No | New width in the chosen unit, from 10 mm to 2000 mm. The height follows the proportions. | |
| new_height | No | New height in the chosen unit, up to 2000 mm. The width follows the proportions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| view | Yes |