# font_import

> Add a TTF/OTF file to the font store.

Source: https://stuarty.com/docs/mcp/tools/font_import/

Add a TTF/OTF file to the font store. path is absolute, on the server. Returns the hash for font.add.

## Behaviour

These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. `font_import` is listed by `tools/list`.

| Property | Value |
| --- | --- |
| Read only | no |
| Destructive | no |
| Idempotent | yes |
| Reaches outside the workspace | no |

## Input

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `path` | `string` | yes |  |

## Output

A result has a text block, written for the model, and structured content with these members.

The structured content is the result of the service operation; see the text block of a call.

## Errors

- [`E_VALIDATION`](/docs/reference/error-codes#e_validation)

A call over HTTP without credentials fails with `E_UNAUTHORIZED`, and too many calls with `E_RATE_LIMITED`. Both are in the [error codes](/docs/reference/error-codes).

## Safety

- `path` is absolute and on the machine of the server. Only a TTF or OTF file is accepted.

## Next steps

- [Connect a client](/docs/mcp/connect)
- [The MCP tools](/docs/mcp/tools)

**Ask the agent**

> Add the font C:/fonts/Inter-Bold.ttf so I can use it in the captions.

**The call**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "font_import",
    "arguments": {
      "path": "C:/fonts/Inter-Bold.ttf"
    }
  }
}
```

**The result**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "…"
      }
    ],
    "structuredContent": {
      "hash": "sha256:abababababababababababababababababababababababababababababababab",
      "bytes": 316000,
      "deduplicated": false
    }
  }
}
```

The values are illustrative. The text block holds the same result written for the model; its wording is left out here.
