Get Prompt • AI Agent SDK

get_prompt: Fetch an MCP prompt template rendered with “arguments“.

get_prompt

Method

</div>

This is a method of the MCPToolRunner class in the mcp module.

Fetch an MCP prompt template rendered with `arguments`.

Signature

python
def get_prompt(name: Any, arguments: Any) -> Any

Parameters

ParamField Any

No description available.

ParamField Any

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • normalize_prompt_result

Source

View on GitHub

praisonaiagents/mcp/mcp.py at line 299