Skip to content

Chat, files & replay

A tool makes a PDF and then a Word document, each opening next to the chat; an attached PDF opens the same way

When a model reasons before it answers, Moka shows its thinking as it happens: Thinking… with the thoughts streaming in, then folded to Thought for 6s once it answers or calls a tool. Click it to read it again. With tools, you see the thinking before each call, so you know why the model picked that tool and those arguments.

ProviderWhat you see
OpenAI (Responses API), AzureReasoning summaries from reasoning models (gpt-5, o-series)
AnthropicClaude’s thinking (3.7 and later; summarized on 4.6 and later)
GoogleGemini 2.5 and later’s thought summaries. Flash models barely think by default, so Auto asks them for a little (low thinking level)
Ollama, LM Studio and other OpenAI-compatible servers<think> blocks (Qwen3, DeepSeek-R1, QwQ…) and reasoning_content

Set it per model in Settings → Models → Reasoning: Auto (default) asks for it where the model can reason, at its usual effort; low, medium or high also set the effort (high is slower and uses more tokens). Off asks the model not to think, in each provider’s way: the lowest reasoning effort for OpenAI models, thinking disabled for Claude, minimum thinking for Gemini, and for local servers (LM Studio, Ollama, vLLM, llama.cpp) reasoning_effort: "none" plus enable_thinking: false for the chat template, and Qwen3’s /no_think. Some models always think a little. Your own providerOptions win over Moka’s.

For a model that can think, the chat input has a Thinking button with the choices that model understands. What you pick is saved as the model’s Reasoning setting, from the next message on.

The Thinking menu in the chat input for gpt-oss 20B: Auto, Off, Low, Medium and High, with High checked
ModelChoices
OpenAI reasoning models, Claude 3.7+, Gemini 2.5+, gpt-ossAuto, Off, Low, Medium, High
Hybrid models that think or not: Qwen3, DeepSeek V3.1, GLM-4.5+, SmolLM3, Granite 3.2+On, Off
Models that always think: DeepSeek-R1, QwQ, Magistral, *-thinkingNo choice, the button says Thinks

Moka knows these by name. Another model shows the button once it has sent its thinking. Models that don’t think don’t get the button.

Click the paperclip, paste, or drag files onto the composer (up to 10 MB each):

FileSent to the model as
ImagesAn image part (for vision models)
Text, Markdown, JSON, CSV, codeInline text wrapped in <file name="…">
PDFsThe PDF itself to models that read PDFs (OpenAI, Anthropic, Gemini, Azure). Every other model (LM Studio, Ollama, gateways) gets its text, page by page
Word (.docx)Its text, as Markdown (headings, lists, tables)
Anything elseA file part for models that accept it, otherwise a note saying the model can’t read it

Moka reads the text out of PDFs and Word files in your browser when you attach them, so nothing is uploaded anywhere. A PDF of scanned pages has no text to read; Moka tells the model so.

A2A agents receive attachments as FileParts. AG-UI agents get text and a note about the attachment.

Click an attachment, or a file a tool returned, and it opens in a pane next to the chat. When a tool makes a document (PDF, Word, HTML, Markdown or CSV), it opens there on its own, like a file an agent just made for you.

TypeShown as
PDFIts pages, with zoom (drawn by pdf.js, in every browser)
Word (.docx)Its text, formatted
HTMLThe page, in a sandbox with no access to Moka. </> shows its source
Markdown, CSV / TSV, JSONFormatted, as a table, or as a tree
Images, SVG, audio, videoAs themselves
Mermaid (.mmd)The diagram
Code and other textAs text

The name at the top of the pane lists every file in the chat, to switch between them. Drag the pane’s edge to resize it; ⤓ downloads the file and × closes the pane.

Try it with the demo server: ask “Make a PDF about office plants for north light”. Its create_document tool writes PDF, Word, HTML or Markdown files.

When a model writes HTML, SVG or a Mermaid diagram in its answer, Moka shows it instead of a wall of code:

  • Mermaid and SVG are drawn right in the chat. Hover for Show code or Open in the preview pane.
  • A whole HTML page (a dashboard, a landing page, a report) shows as a card and opens in the preview pane on its own when the reply finishes. Show code is on the card.
  • HTML snippets keep their code block, with a Preview button.

Ask “Make me an HTML dashboard for…” or “Draw a diagram of…” with any model, local ones included: no tool needed.

HTML runs in a sandbox with no access to Moka, its API or your token. If a page loads anything from the network (a chart library from a CDN, fonts), a banner says from which hosts, and Block shows it offline instead. Use Expand (⤢) to give a page most of the screen.

Replies render Markdown the way GitHub does, plus what models like to write:

Model writesYou see
```ts, ```html, ```python…Highlighted code in a block with the language and a copy button. Around 40 languages; the colors follow the light or dark theme
> [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]A colored callout
$x^2$, \(x^2\), $$…$$, \[…\]Math, typeset with KaTeX. Prices like “$5 and $10” stay text
- [ ] / - [x]Checklists
<span style="color:…">, <mark>, <kbd>, <sub>, <sup>, <u>Colored, highlighted or keyboard text, sub/superscript

Models only use these when they choose to. So that they know they can, Moka adds a short formatting hint to the system prompt (about 100 tokens; it’s in the context budget and the inspector’s run start). Turn it off per workspace with "formatHints": false. Tool tests never send it.

Other HTML in a reply is dropped (its text stays): no scripts, styles beyond color and emphasis, or event handlers. Whole HTML pages open in the preview, as above.

Code is highlighted wherever Moka shows it: replies, the preview pane (source and code files), Export, the inspector’s raw arguments, JSON tool results, and the moka.json, tool-arguments and SKILL.md editors. The fonts (Inter, JetBrains Mono), highlighter and KaTeX ship with Moka; nothing loads from the internet, and the highlighter and KaTeX load only when a reply needs them.

Moka shows any of these in a tool result as a file:

  • Images and audio: { "type": "image", "data": "<base64>", "mimeType": "image/png" }
  • Embedded resources: { "type": "resource", "resource": { "uri": "file:///out/report.pdf", "mimeType": "application/pdf", "blob": "<base64>" } }, or text instead of blob for text files. The file name comes from the URI.
  • Resource links: { "type": "resource_link", "uri": "…", "name": "report.pdf", "mimeType": "application/pdf" }. Moka reads the resource from your server when the file is opened.

Resources with a ui:// URI are interactive UIs, shown in the chat instead (see MCP Apps).

Type @ (or click the @ button) to list every resource from the workspace’s connected servers. Keep typing to filter (@brew), press Enter to attach the top match, or Esc to cancel. Pick one and its contents are attached as <resource uri="…">, which is handy for feeding a doc, a schema or a log to the model.

Type / in an empty composer to see prompts from the workspace’s servers. Picking one asks for its arguments (if any) and inserts the rendered prompt into the composer so you can edit it before sending. Try /plan-a-trip with the demo server.

Hover a message you sent to see when you sent it and two actions:

  • Run again (↻) sends it again. On an earlier message, it replaces the replies after it.
  • Copy copies its text.

To change it first, press ↑ in an empty message box: your last message comes back, ready to edit.

Hover a chat in the sidebar and press ▶ to replay it: messages type out, tool cards run and UIs appear, all from the saved chat, without calling any model or tool. Use it for demos on bad Wi-Fi, or to walk someone through a flow at your own pace. Stop ends the replay and leaves the full chat in place.

  • ⤓ next to a chat downloads it as JSON (messages, tool calls, UI and model history).
  • ⤒ at the top of the sidebar imports one, ready to replay or continue.