MCPcopy Index your code
hub / github.com/SkyworkAI/DeepResearchAgent / get

Method get

src/tool/context.py:515–527  ·  view source on GitHub ↗

Get tool configuration by name Args: tool_name: Tool name Returns: Tool: Tool instance or None if not found

(self, tool_name: str)

Source from the content-addressed store, hash-verified

513
514
515 async def get(self, tool_name: str) -> Tool:
516 """Get tool configuration by name
517
518 Args:
519 tool_name: Tool name
520
521 Returns:
522 Tool: Tool instance or None if not found
523 """
524 tool_config = self._tool_configs.get(tool_name)
525 if tool_config is None:
526 return None
527 return tool_config.instance if tool_config.instance is not None else None
528
529 async def get_info(self, tool_name: str) -> Optional[ToolConfig]:
530 """Get tool info by name

Callers 10

register_tool_classMethod · 0.45
_load_from_codeMethod · 0.45
registerMethod · 0.45
get_infoMethod · 0.45
updateMethod · 0.45
copyMethod · 0.45
load_from_jsonMethod · 0.45
restoreMethod · 0.45
retrieveMethod · 0.45
set_variablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected