---
title: AI and agents
project: Documents
version: v1
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/documents/1/guides/ai-and-agents/
updated: 2026-11-19T05:59:09.540Z
---

# AI and agents

> Everything agents, crawlers and training pipelines can read, and how an agent can write with a token.

Documents publishes every page twice: as HTML for people and as Markdown for machines. Private projects never appear in any of the files or tools below.

## Markdown of every page

Add `.md` to the address of a page: `/{project}/{version}/{section}/{page}.md`. It starts with a YAML header (title, project, version, section, language, license, URL, update date) and includes all the entries of the page. The page links to it with `<link rel="alternate" type="text/markdown">`.

## llms.txt, llms-full.txt and the dataset

- `/llms.txt` lists every public project and version.
- `/{project}/{version}/llms.txt` lists every page of a version with a link to its Markdown.
- `/{project}/{version}/llms-full.txt` is the whole version in one file.
- `/{project}/{version}/dataset.jsonl` has one JSON line per page and language, with its license, ready for indexing or training.

## Search engines

`/sitemap.xml` lists every page in every language with `hreflang` alternates, and every page has JSON-LD (`TechArticle` or `APIReference`). In **Settings** you choose what `robots.txt` allows: everything, everything except AI training crawlers, or nothing.

## MCP server

`/mcp/` is an MCP server (Streamable HTTP). Reading needs no token: `Docs_projects`, `Docs_search`, `Docs_page` and `Docs_entry`. It is announced at `/.well-known/mcp.json`, and there is an agent skill at `/.well-known/agent-skills/documents/SKILL.md`. The page `/ai/` explains all of this to people.

## WebMCP

Every page also offers the reading tools to AI agents that run inside the browser (WebMCP), with the `webmcp` component of jComponent. They are the same public tools of `/mcp/` and are listed at `/.well-known/webmcp`. While WebMCP is a Chrome trial, paste your origin trial token in **Settings**.

## Agents that write

In **Agent tokens** an owner creates a token with a role (editor or translator), some projects and an expiry. The token is shown once; only its hash is stored. With the header `Authorization: Bearer <token>`, an agent connects to `/mcp/` and gets the writing tools of its role (see [MCP tools](/documents/1/reference/mcp-tools/)), or uses the same JSON API as the panel (`POST /api/`). Both work with the permissions of its role and projects, and every change is in the history with the name of the token.

Writing through MCP will come back when the native MCP of Total.js runs each tool as the agent that calls it.

See [MCP tools](/documents/1/reference/mcp-tools/) and [Connect Claude Code](/documents/1/recipes/connect-claude-code/).
