femm_add_block_label
Add a block label at (x, y) inside a closed region to assign material, mesh size, circuit, turns, and group in one call.
Instructions
Add a block label at (x, y) inside a closed region and assign its properties in one call.
material: a name already loaded/defined (femm_material_load / femm_material_add), or "" for a hole. mesh_size: max element size in problem units, None = automatic. Magnetics only: circuit (name from femm_add_circuit, "" for none), magdir (magnetisation direction in degrees for magnets), turns (number of turns of this block in the circuit; negative = opposite direction). group: integer group for selection/integrals. Each closed region needs exactly one label; a label in the wrong region is a common bug (check with femm_geometry_summary).
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": {
"x": "<x>",
"y": "<y>",
"material": "<material>"
},
"name": "femm_add_block_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| group | No | ||
| turns | No | ||
| magdir | No | ||
| circuit | No | ||
| session | No | main | |
| material | Yes | ||
| mesh_size | No |