osrs_wiki_parse_page
Extract parsed HTML content from any OSRS Wiki page using the exact title for precise data retrieval and integration into applications or workflows.
Instructions
Get the parsed HTML content of a specific OSRS Wiki page.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | The exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive. |
Implementation Reference
- index.ts:418-430 (handler)The handler function that executes the tool logic: validates input, makes API call to parse the specified wiki page, and returns the parsed HTML text.case "osrs_wiki_parse_page": const parsePageArgs = getSchemaForTool(name).parse(args) as { page: string }; const { page } = parsePageArgs; const parseResponse = await osrsApiClient.get('', { params: { action: 'parse', page: page, prop: 'text', formatversion: 2 } }); return responseToString(parseResponse.data?.parse?.text || 'Page content not found.');
- index.ts:48-50 (schema)Zod schema defining the input parameter 'page' for the tool.const OsrsWikiParsePageSchema = z.object({ page: z.string().describe("The exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive.") });
- index.ts:309-311 (registration)Registration of the tool in the list of available tools returned by listTools, with name and description.{ name: "osrs_wiki_parse_page", description: "Get the parsed HTML content of a specific OSRS Wiki page.",
- index.ts:281-282 (schema)Mapping of tool name to its Zod schema in the getSchemaForTool function used for input validation.case "osrs_wiki_parse_page": return OsrsWikiParsePageSchema;
- index.ts:262-262 (registration)Schema conversion and inclusion in toolSchemas object (note: uses camelCase key).osrsWikiParsePage: convertZodToJsonSchema(OsrsWikiParsePageSchema),