Skip to main content

Module app_rpc

Module app_rpc 

Source
Expand description

A computer-use skill’s scripts in Memory (docs/specs/SPEC_PACKS_2026_11_05.md §5): read one to review it, and approve or revoke it. A script is not written to an agent’s folder until it is approved, and a changed or new one starts unapproved again (skill_app_set). Window-scoped like the rest of skill.catalog.*: the person at Memory reads the text and says yes. Nothing here is a switch an agent flips for itself; the Skills tool offers get of a file but no approval.

Functions§

downloads_dir 🔒
The Downloads folder: the desktop’s own, else ~/Downloads when there is one (a Linux home without the desktop’s folder list has none to name), else the home folder.
global_app_skill 🔒
png_data_url 🔒
A reference crop as a data URL. Only a PNG is one: the bytes are checked, not the file name.
register 🔒
register_app_file 🔒
register_app_script 🔒
register_export 🔒
write_unused 🔒
Write bytes to filename in dir, or to name (2).ext, name (3).ext … when that name is taken. The file is created only if nothing is there (create_new, which does not follow a link to somewhere else), so a file that appears between two tries is never overwritten.