find_trips
Search and discover custom 'trips' for web data extraction and research using the LSD MCP Server by entering a specific query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"query": {
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}
Implementation Reference
- src/trips.ts:30-35 (handler)The findTrips function implements the core tool logic: searches for relevant LSD trips using a query, registers dynamic tools from results, and returns the trips.export const findTrips = async (server: McpServer, query: string) => { const result = await runLSD(`SEARCH "${query.replaceAll("\"", "'")}"`); registerTools(server, result.map(toToolDefinition)); return result; };
- src/trips.ts:38-48 (registration)Registers the 'find_trips' tool on the server, including input schema { query: z.string() } and a handler that invokes findTrips to execute the logic.server.tool("find_trips", { query: z.string() }, async ({ query }) => { const result = await findTrips(server, query); return { content: [ { type: "text", text: JSON.stringify(result), }, ], }; });
- src/index.ts:16-16 (registration)Invokes applyTripsTool, which registers the 'find_trips' tool.applyTripsTool(server);