Is there any API for interacting with the engine?

Hi,

Is there any C/C++ API for getting information and sending commands to engine? Such as getting screen image, sending inputs for bots, restarting server etc.

You can send commands for server over the network using rcon. Bot input is controlled by the Game VM (vm/qagame.qvm) which is written in C.