From mdview
Click a .md path in the Claude Code conversation to read it rendered as markdown beside the session, pictures included, and point at any block to have Claude edit it.
8 events · 22 calls
Ships in mdview. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runfs.readfs.statenv.getconfig.setprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startclassic.CwdChangedtool.calltool.call{tool=mcp__mdview__show}command.run{command=md}ui.closeui.render{component=AssistantMessage}ui.render{component=ToolUse}ui.render{component=UserMessage}turn.startturn.completeui.render{component=Pane, requestId=mdview}Every mods API method its source calls, by namespace
everynowsleepregistersetgetreadstatrunfillsubmitcwdgetsetregisterclosecopyinvalidateopenresolvescrolltoastCLAUDE_CODE_FORCE_TERMINAL_IMAGESHOMEKITTY_WINDOW_IDTERMTERM_PROGRAMTERM_PROGRAM_VERSIONTMPDIRWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub xuanji86/claude-mdview --plugin mdview