call_qtmodel_api
Call uncovered QtModel API methods directly; signature validation prevents parameter errors. Destructive or long-running operations are blocked; use dedicated tools instead.
Instructions
Call a qtmodel API method not covered by a curated tool (调用 qtmodel 长尾 API).
ESCAPE HATCH — prefer a dedicated tool when one exists. Discover the
real signature with list_qtmodel_api first. Arguments are validated
against the real signature before dispatch, so a wrong parameter name
fails fast with the correct signature rather than corrupting the model.
Destructive/long-running methods (initial 清空模型, do_solve 求解) are
blocked here — use initialize_model / run_analysis instead.
(清空模型、求解等危险或长耗时操作已禁止经此调用,请用对应专用工具。)
Args:
api_object: Database object (数据库对象): "mdb", "odb", "cdb"
method: Exact method name (精确方法名), e.g. "add_spectrum_function"
kwargs: Keyword arguments as a dict, matching the real signature
(与真实签名一致的关键字参数字典)
Example:
call_qtmodel_api("mdb", "add_tendon_group", {"name": "钢束组1"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kwargs | No | ||
| method | Yes | ||
| api_object | Yes |