HttpFetchTool

@Component
class HttpFetchTool @Autowired constructor(properties: AgentConstraintsProperties, httpClient: CloseableHttpClient, httpGet: HttpGet)

Constructors

Link copied to clipboard
@Autowired
constructor(properties: AgentConstraintsProperties, httpClient: CloseableHttpClient, httpGet: HttpGet)

Functions

Link copied to clipboard
@Tool(description = "Fetch textual information from the internet. Use HTTPS host. Returns stripped text.")
fun fetchWebsiteText(@McpToolParam(description = "The full HTTPS URL to fetch") url: String, @McpToolParam(description = "Maximum number of characters to return to avoid context window limits") maxChars: Int): String