Provide node/leaf state data in instructions

Replaces https://github.com/splitbrain/dokuwiki/pull/937