跳转到内容
Developer Preview — APIs and language features may change before 1.0

widget

此内容尚不支持你的语言。

widget

Surface: expose as a home/lock-screen widget

Children

Translations

  • es: widget
  • fr: widget
  • en: widget
  • de: Widget
  • ja: ウィジェット
  • zh: 小组件
  • ko: 위젯

Example — Reaching the outside world

One machine reachable many ways: a web address, notifications, an AI-tool connection, a phone shortcut, a widget — with access rules on each.

machine status_board
accepts
question as text
responds with
status as text
expresses
api
path: "/status"
method: "GET"
available to: team
requires auth: oauth
rate limit: 100
webhook
path: "/hooks/status"
websocket
path: "/ws/status"
mcp
name: "status_tool"
a2a
name: "status_agent"
page
view
theme: "light"
command refresh
shortcut phrases: ["Check status"]
widget
kind: "small"
subscribes
on "status.changed"
compute bump
{status: "changed"}
implements
compute answer
{status: "ok"}