import_file
Copy STL/OBJ geometry, meshes, or other files into an OpenFOAM case, e.g. the surface for snappyHexMesh. Provide source, destination, and case to stage simulation inputs.
Instructions
Copy geometry (STL/OBJ), meshes or other files into a case, e.g. the surface for snappyHexMesh.
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": {
"case": "<case>",
"source": "<source>",
"dest": "<dest>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | Yes | Case name in the workspace (e.g. 'pitzDaily') or an absolute path inside an allowed root. | |
| dest | Yes | Destination inside the case: a directory ending in '/' (e.g. 'constant/geometry/') or a file path. | |
| source | Yes | File or directory to copy: '$FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz', or a path inside the workspace/allowed roots (Windows paths like C:\\models\\car.stl are accepted under WSL). |