get_program_details
Retrieve detailed information about Swedish educational programs including structure, specializations, career outcomes, and required courses to support academic planning and guidance.
Instructions
Hämta detaljerad information om ett specifikt program.
ANVÄNDNINGSFALL:
Djupdyka i programstruktur
Se alla inriktningar och profiler
Förstå yrkesutfall och karriärvägar
Planera studieväg
Vägledning och rådgivning
RETURNERAR: Komplett programinformation inkl:
Alla inriktningar
Profiler och specialiseringar
Yrkesutfall och fortsatta studier
Programspecifika kurser
EXEMPEL: code="NA" för Naturvetenskapsprogrammet, "TE" för Teknikprogrammet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| version | No |
Implementation Reference
- src/tools/syllabus/programs.ts:79-106 (handler)The main asynchronous handler function that executes the get_program_details tool. It fetches program details using the syllabusApi and returns a formatted JSON response or an error message.export async function getProgramDetails(params: { code: string; version?: number; date?: string; }) { try { const program = await syllabusApi.getProgram(params.code, params.version, params.date); return { content: [ { type: 'text' as const, text: JSON.stringify(program, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text' as const, text: `Fel vid hämtning av programdetaljer: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }
- src/tools/syllabus/programs.ts:17-21 (schema)Zod schema defining the input parameters and descriptions for the get_program_details tool.export const getProgramDetailsSchema = { code: z.string().describe('Programkod (t.ex. "NA" för Naturvetenskapsprogrammet)'), version: z.number().optional().describe('Versionsnummer (lämna tomt för senaste versionen)'), date: z.string().optional().describe('Datum i formatet YYYY-MM-DD för att hämta versionen som var giltig vid det datumet') };
- src/http-server.ts:59-61 (registration)Registration of the get_program_details handler in the tools registry object used by the HTTP server.search_programs: searchPrograms, get_program_details: getProgramDetails, get_program_versions: getProgramVersions,