# createAssembleHtmlTool

**Kind:** Function

**Source:** [`atloria-monorepo/libs/pme-core/src/tools/assemble-html.tool.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/pme-core/src/tools/assemble-html.tool.ts#L24)

Create the assemble_html tool.
Accepts a storeFn so it can auto-store the generated HTML and return only a summary
(avoids sending 30K+ chars back through the agent loop which causes API timeouts).

## Signature

```ts
function createAssembleHtmlTool(storeFn: StoreAssetFn, config: GenerationConfig): ToolDefinition<PmeContext>
```

## Parameters

| Name | Type |
|---|---|
| `storeFn` | `StoreAssetFn` |
| `config` | `GenerationConfig` |

**Returns:** `ToolDefinition<PmeContext>`
