{"id":"runtime--HostAccessibility.PublishNode","name":"HostAccessibility.PublishNode","owner":"yeho","package":"runtime.HostAccessibility","kind":"builtin","signature":"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","description":"Publish node through the HostAccessibility runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"window","type":"int","description":"Supply window as int.","rule":"Int"},{"name":"native_identity","type":"int","description":"Supply native identity as int.","rule":"Int"},{"name":"parent_native_identity","type":"int","description":"Supply parent native identity as int.","rule":"Int"},{"name":"generation","type":"int","description":"Supply generation as int.","rule":"Int"},{"name":"control_type","type":"int","description":"Supply control type as int.","rule":"Int"},{"name":"automation_identity","type":"text","description":"Supply automation identity as text.","rule":"Text"},{"name":"name","type":"text","description":"Supply name as text.","rule":"Text"},{"name":"description","type":"text","description":"Supply description as text.","rule":"Text"},{"name":"value","type":"text","description":"Supply value as text.","rule":"Text"},{"name":"pattern_flags","type":"int","description":"Supply pattern flags as int.","rule":"Int"},{"name":"x","type":"int","description":"Supply x as int.","rule":"Int"},{"name":"y","type":"int","description":"Supply y as int.","rule":"Int"},{"name":"width","type":"int","description":"Supply width as int.","rule":"Int"},{"name":"height","type":"int","description":"Supply height as int.","rule":"Int"},{"name":"focused","type":"bool","description":"Supply focused as bool.","rule":"Bool"},{"name":"focusable","type":"bool","description":"Supply focusable as bool.","rule":"Bool"},{"name":"enabled","type":"bool","description":"Supply enabled as bool.","rule":"Bool"}],"returns":"bool","members":[],"tags":["builtin","cpu","hostaccessibility","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1135,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["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."],"examples":[{"id":"usage","title":"Call HostAccessibility.PublishNode","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int window = 1\nint native_identity = 1\nint parent_native_identity = 1\nint generation = 1\nint control_type = 1\ntext automation_identity = \"automation identity\"\ntext name = \"Nova\"\ntext description = \"description\"\ntext value = \"value\"\nint pattern_flags = 1\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nbool focused = true\nbool focusable = true\nbool enabled = true\nbool 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)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__hostaccessibility_publishnode\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"2e582f94cc380c36e1a45744e2c7cae5355626ad9ba56878ac5d45f3c5446d07","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--HostAccessibility.PublishNode","json":"https://demonhunterlabs.com/reference/items/runtime--HostAccessibility.PublishNode.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--HostAccessibility.PublishNode.md"}
