Updated doc in get-annotated-message.ts
This commit is contained in:
parent
82cda366d6
commit
29a20bfd0a
1 changed files with 3 additions and 3 deletions
|
|
@ -24,16 +24,16 @@ const config = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers the 'annotated-message' tool with the provided McpServer instance.
|
* Registers the 'get-annotated-message' tool with the provided McpServer instance.
|
||||||
*
|
*
|
||||||
* The registered tool generates and sends messages with specific types, such as error,
|
* The registered tool generates and sends messages with specific types, such as error,
|
||||||
* success, or debug, carrying associated annotations like priority level and intended
|
* success, or debug, carrying associated annotations like priority level and intended
|
||||||
* audience.
|
* audience.
|
||||||
*
|
*
|
||||||
* Optionally, it can include an annotated image in the response.
|
* The response will have annotations and optionally contain an annotated image.
|
||||||
*
|
*
|
||||||
* @function
|
* @function
|
||||||
* @param {McpServer} server - The MCP server instance where the Annotated Message Tool is to be registered.
|
* @param {McpServer} server - The MCP server instance where the tool is to be registered.
|
||||||
*/
|
*/
|
||||||
export const registerGetAnnotatedMessageTool = (server: McpServer) => {
|
export const registerGetAnnotatedMessageTool = (server: McpServer) => {
|
||||||
server.registerTool(name, config, async (args): Promise<CallToolResult> => {
|
server.registerTool(name, config, async (args): Promise<CallToolResult> => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue