MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / list_prompts

Method list_prompts

src/mcp/client/session.py:710–716  ·  view source on GitHub ↗

Send a prompts/list request. Args: params: Full pagination parameters including cursor and any future fields

(self, *, params: types.PaginatedRequestParams | None = None)

Source from the content-addressed store, hash-verified

708 raise RuntimeError(f"Invalid schema for tool {name}: {e}") # pragma: no cover
709
710 async def list_prompts(self, *, params: types.PaginatedRequestParams | None = None) -> types.ListPromptsResult:
711 """Send a prompts/list request.
712
713 Args:
714 params: Full pagination parameters including cursor and any future fields
715 """
716 return await self.send_request(types.ListPromptsRequest(params=params), types.ListPromptsResult)
717
718 async def get_prompt(
719 self,

Callers

nothing calls this directly

Calls 1

send_requestMethod · 0.95

Tested by

no test coverage detected