encyclopegia.org

Simple task-actor protocol

Simple Task-Actor Protocol (STAP) is a machine-readable format for specifying user-interface changes. STAP enables symmetric user-interface access for AI and human users.

Simple Task-Actor Protocol (STAP) is a machine-readable format for specifying user-interface changes. STAP enables symmetric user-interface access for AI and human users. ==Description== Main focus of STAP is in providing a functionally-equivalent task experience for human and computational users alike. In its focus to make human software usable by machine agents, STAP aims to eliminate non-task-essential design choices (e.g. font type/size may be irrelevant for many task types), leaving those to be optionally specified via customizable templates (e.g. CSS). STAP messages adhere to JSON formatting, and can be deserialized with any standard JSON library. ==Deployment== Deploying a STAP application is similar to deploying a web application, where STAP takes place of HTML as the language for UI description. Much like HTML, STAP is a means for serializing task interface display and interactions. Unlike HTML documents, STAP messages are incremental updates to the display. Whereas HTML is focused on hypertext look and feel, STAP is focused on function, structure, and affordances of task display. ==Benefits== Benefits of task development with STAP: less code, more GUI cross-platform, web-friendly precision timing consistent cross-task API, allowing computational agents to interact with the same sw that that human users interact with Benefits of agent development for STAP-compliant tasks: consistent cross-task API, allowing computational agents to interact with the same sw that that human users interact with precise user-time [with faster-than-real-time and slower-than-real-time capabilities] cross-platform, web-friendly scalable (i.e., core API is minimal, additional UI feature handlers can be added to agent framework on a per-task basis) ==Sample interactions== -> Message sent from task software to participant software ["Hello World"] // display a "Click Me" button -> "Click Me" // user clicks the button after 30.8s {"require":{"options":["S","eT"]}} // let client know that a goal in this task is to maximize coins earned -> {"task":{"good":"Coins Earned",">"}} // display a text prompt to get participant's name (eT:1 turns text editable) -> "What is your name?","",{"eT":1} // participant types in "Bob" and hits enter (9.876sec after task display first loaded) null // display two buttons -> [["choose a button",[["Button 1"],["Button 2" // first button was clicked after 12.307sec "Coins Earned",7 // wait 2 seconds and remove the Coins Earned display -> "Coins Earned",null,{"S":14307} // second button was clicked "Coins Earned",3 ... Sample Interaction 3: // user software ready {"require":{"types":["path"],"events":[40],"options":["w","h"]}} // display a 100x100 box that will display red lines; "e":[40] signifies that click events should be captured (see > 40 below) -> [["click somewhere",{"type":"path","w":100,"h":100,"e":[40]} // user clicked in location 24,60 relative to top-left corner of the box "click somewhere",[50,50,24,60] // user clicked in location 91,10 relative to top-left corner of the box "click somewhere",[50,50,91,10] // user clicked in location 31,33 relative to top-left corner of the box "click somewhere",[50,50,31,33] ... ==References== ==External links== STAP spec and sample task-side and user-side scripts

References

No reference rows published for this article.

Cite this article

MLA

"Simple task-actor protocol." encyclopegia.org, 2025, https://encyclopegia.org/wiki/simple-task-actor-protocol. Accessed 24 November 2026.

Chicago

"Simple task-actor protocol." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/simple-task-actor-protocol.

APA

encyclopegia.org. (2025). Simple task-actor protocol. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/simple-task-actor-protocol

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1321904653 · 0.5 · snapshot enwiki-001321904653

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.