It would be useful to:
- Get a list of actions on a screen.
- Get information about an action (name, key, position, description)
- Get the actionID of an action by name or other property (though it would be possible to work around this by combining the first two).

Without these, it's hard to make changes to a screen where the actionIDs aren't specified in XML (which is nearly all of them in core). I realize they default to numbers, but using them isn't safe if another mod might also be modifying the screen.

nms 7 Jun 2016:

Apparently this was proposed 5 1/2 years ago: http://forums.kronosaur.com/viewtopic.php?p=31248#p31248

nms 2 Apr 2017:

This seems increasingly important for mod compatibility, and not too difficult.

The bare minimum for this would be something like:
(scrGetActionList screen) -> list of structs containing the keys:
'id
'label
'desc
'key
'special
'code
'pos

It would also be convenient to have:
(scrGetActionIDs screen) -> list of actionIDs
(scrGetAction screen actionID) -> struct or nil