With this concept you can only access each context (graph) on its own, but you have no access to the windows opened in a context. Especially the commands of category Window are sometimes useless, because they work only for the first window of a context. Therefore we have introduced the Window-API mode in daVinci V2.1. With the command-line option -window_api, you can switch the behaviour of the API. We have to keep the old behaviour as the default, because we have to guarantee, that all old applications still work without changes. In multi-window mode, the current context must be set with a command of this category. The current context and window specifies the graph and its window that is currently affected by all the other commands sent to the API. On the other side, in multi-window mode, each answer from the API has a preluding context_window answer to specify the graph and window where the event happened.
The rest of the answers (listed here) are events that are triggered by the user (e.g. to inform the application about selection of a graph node). Events can occur at any time, except when an API command is currently executed and not yet confirmed.