---
title: "HTML kit commands — Kition SDK reference"
description: "The 5 commands an AI agent can run on HTML (.html or .htm) files with the HTML kit (0.1.0) through html_run: what each does, its parameters and its result."
canonical: "https://developer.kition.ai/docs/kits/html"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/html](https://developer.kition.ai/docs/kits/html)

# HTML kit commands

The 5 commands an AI agent can run on HTML (.html or .htm) files with the HTML kit (0.1.0) through html_run: what each does, its parameters and its result.

## How an agent uses them

`html_commands` finds commands by keywords; `html_run` runs them as steps, `{ path, steps: [{ command, params }] }`, then saves the file and answers each step’s result. With the server’s `--unified` tools the same commands go through `kit_run`. Setup: [Agents (MCP)](https://developer.kition.ai/docs/agent.md).

## Commands

### edit

- [`edit.redo`](https://developer.kition.ai/docs/kits/html/commands/edit.redo.md): Redo (changes the document)
- [`edit.undo`](https://developer.kition.ai/docs/kits/html/commands/edit.undo.md): Undo (changes the document)

### file

- [`file.setSource`](https://developer.kition.ai/docs/kits/html/commands/file.setSource.md): Replace HTML (changes the document)

### preview

- [`preview.advance`](https://developer.kition.ai/docs/kits/html/commands/preview.advance.md): Advance preview time
- [`preview.click`](https://developer.kition.ai/docs/kits/html/commands/preview.click.md): Click preview

Generated from the command list of @kition/html-darwin-arm64@0.1.0, its kit.json and the kit itself (html_commands through @kition/cli@0.1.1, built from KitionAI/kition-html@e0ad2d3). All of them as JSON Lines: [commands.jsonl](https://developer.kition.ai/commands.jsonl).
