Interface FetchTool
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Tool which retrieves the full contents of a search result document or item.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<FetchResponse>
fetch
(@NonNull FetchRequest request, @Nullable io.modelcontextprotocol.common.McpTransportContext mcpTransportContext) The fetch tool is used to retrieve the full contents of a search result document or item.default @NonNull String
default @NonNull String
getName()
default @NonNull String
getTitle()
-
Field Details
-
DEFAULT_NAME
- See Also:
-
DEFAULT_TITLE
- See Also:
-
DEFAULT_DESCRIPTION
- See Also:
-
-
Method Details
-
getName
-
getTitle
- Returns:
- MCP Tool Title
-
getDescription
-
fetch
@NonNull @NonNull Optional<FetchResponse> fetch(@NonNull @NonNull FetchRequest request, @Nullable @Nullable io.modelcontextprotocol.common.McpTransportContext mcpTransportContext) The fetch tool is used to retrieve the full contents of a search result document or item.- Parameters:
request
- A unique identifier of the search documentmcpTransportContext
- MCP Transport Context- Returns:
- Search Document
-