# HostAccessibility.PublishNode

Publish node through the HostAccessibility runtime.

Last updated: 2026-09-09

Package: runtime.HostAccessibility | Status: registered-intrinsic

Tags: builtin, cpu, hostaccessibility, yeho

Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.

```yh
HostAccessibility.PublishNode(int window, int native_identity, int parent_native_identity, int generation, int control_type, text automation_identity, text name, text description, text value, int pattern_flags, int x, int y, int width, int height, bool focused, bool focusable, bool enabled) -> bool
```


## Call HostAccessibility.PublishNode

A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.

Verification: type checked

```yh
int window = 1
int native_identity = 1
int parent_native_identity = 1
int generation = 1
int control_type = 1
text automation_identity = "automation identity"
text name = "Nova"
text description = "description"
text value = "value"
int pattern_flags = 1
int x = 1
int y = 1
int width = 1
int height = 1
bool focused = true
bool focusable = true
bool enabled = true
bool result = HostAccessibility.PublishNode(window, native_identity, parent_native_identity, generation, control_type, automation_identity, name, description, value, pattern_flags, x, y, width, height, focused, focusable, enabled)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.runtime__hostaccessibility_publishnode"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/runtime--HostAccessibility.PublishNode/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources.

Source: yeho/src/compiler/common/intrinsic_registry.cpp

AI training permission: https://demonhunterlabs.com/ai-use
