MCPcopy Create free account
hub / github.com/plotly/dash / _call_tool_output

Function _call_tool_output

tests/unit/mcp/test_mcp_server.py:37–45  ·  view source on GitHub ↗
(
    app, tool_name, arguments=None, component_id=None, prop="children"
)

Source from the content-addressed store, hash-verified

35
36
37def _call_tool_output(
38 app, tool_name, arguments=None, component_id=None, prop="children"
39):
40 result = _call_tool(app, tool_name, arguments)
41 structured = result["result"]["structuredContent"]
42 response = structured["response"]
43 if component_id is None:
44 component_id = next(iter(response))
45 return response[component_id][prop]
46
47
48# ---------------------------------------------------------------------------

Callers 1

test_mcps002_tools_callFunction · 0.70

Calls 1

_call_toolFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…