MCPcopy Create free account
hub / github.com/Louisym/MiniCC / get_specs

Method get_specs

tutorials/03_tool_system.py:308–310  ·  view source on GitHub ↗

获取所有已注册工具的说明书

(self)

Source from the content-addressed store, hash-verified

306 return (f"Tool execution error: {e}", True)
307
308 def get_specs(self) -> list[ToolSpec]:
309 """获取所有已注册工具的说明书"""
310 return list(self._specs.values())
311
312 def get_spec(self, name: str) -> ToolSpec | None:
313 """获取某个工具的说明书"""

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected