Function: profileBlock()
ts
function profileBlock(block): BlockTokenProfile;Defined in: packages/core/src/introspection/TokenEconomics.ts:181
Estimate tokens for a content block structure (MCP response block).
Parameters
| Parameter | Type | Description |
|---|---|---|
block | { text?: string; type: string; } | The content block with type and text fields |
block.text? | string | - |
block.type | string | - |
Returns
Block-level token profile