> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: generateMainThreadScriptResult()

> **generateMainThreadScriptResult**(`xmlFragment`: `string`): [`GeneratedMainThreadScript`](/next/api/genui/lynx-xml/interfaces/GeneratedMainThreadScript.md)

Generate Element PAPI calls and stable id-to-node bindings.

## Parameters

| Parameter     | Type     |
| ------------- | -------- |
| `xmlFragment` | `string` |

## Returns

[`GeneratedMainThreadScript`](/next/api/genui/lynx-xml/interfaces/GeneratedMainThreadScript.md)
