get-search-history
Retrieve your search history from note.com to review past queries and track your research patterns.
Instructions
検索履歴を取得する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/user-tools.ts:175-182 (handler)Handler function that executes the tool logic: fetches search history from the `/v2/search_histories` API endpoint using noteApiRequest, formats the response, or handles errors.async () => { try { const data = await noteApiRequest(`/v2/search_histories`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "検索履歴取得"); } }
- src/tools/user-tools.ts:171-183 (registration)Registration of the 'get-search-history' tool on the MCP server, specifying the tool name, Japanese description, empty input schema (no parameters), and inline handler.server.tool( "get-search-history", "検索履歴を取得する", {}, async () => { try { const data = await noteApiRequest(`/v2/search_histories`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "検索履歴取得"); } } );
- src/tools/index.ts:19-19 (registration)Invocation of registerUserTools which includes the registration of get-search-history among other user tools.registerUserTools(server);