MCPcopy
hub / github.com/plotly/dash / read_resource

Method read_resource

dash/mcp/primitives/resources/resource_layout.py:34–44  ·  view source on GitHub ↗
(cls, uri: str = "")

Source from the content-addressed store, hash-verified

32
33 @classmethod
34 def read_resource(cls, uri: str = "") -> ReadResourceResult:
35 app = get_app()
36 return ReadResourceResult(
37 contents=[
38 TextResourceContents(
39 uri=AnyUrl(cls.uri),
40 mimeType="application/json",
41 text=to_json(app.get_layout()),
42 )
43 ]
44 )

Callers

nothing calls this directly

Calls 3

get_appFunction · 0.90
to_jsonFunction · 0.90
get_layoutMethod · 0.45

Tested by

no test coverage detected