mdpa_extract
Extract a sub model part from a Kratos .mdpa file into a new .mdpa, including its entities, referenced nodes, children, and root part without modifying the input.
Instructions
Write the contents of one sub model part (dotted path) as a new .mdpa: its entities, the nodes they use, its children, and the part itself as the root part. The input is untouched.
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>",
"sub_model_part": "<sub_model_part>",
"output": "<output>"
},
"name": "mdpa_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| output | Yes | ||
| overwrite | No | ||
| sub_model_part | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||