osrs_wiki_parse_page
Extract parsed HTML content from specific Old School RuneScape Wiki pages to access detailed game data like items, NPCs, and mechanics for analysis or integration.
Instructions
Get the parsed HTML content of a specific OSRS Wiki page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | The exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive. |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"page": {
"description": "The exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive.",
"type": "string"
}
},
"required": [
"page"
],
"type": "object"
}
Implementation Reference
- index.ts:372-382 (handler)The switch case handler that executes the osrs_wiki_parse_page tool: validates input using the schema, calls the OSRS Wiki API with the 'parse' action to retrieve the page text content, and returns it as a formatted response.case "osrs_wiki_parse_page": const { page } = OsrsWikiParsePageSchema.parse(args); 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:45-47 (schema)Zod schema defining the input for the tool: requires a 'page' string parameter.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:253-257 (registration)Tool registration in the listTools response, including name, description, and converted input schema.{ name: "osrs_wiki_parse_page", description: "Get the parsed HTML content of a specific OSRS Wiki page.", inputSchema: convertZodToJsonSchema(OsrsWikiParsePageSchema), },