upload_drone_script
Upload a DroneLang script to an autonomous drone (DroneLang is a simple scripting language. Scripts run once per tick. The drone executes the first matching IF branch as one game action. MOVE and at() accept either a POI ID or its station/base ID. MOVE stays within the current system. ATTACK starts a battle only against a visible target at the drone's POI; it can join the battle in its system against any participant. DEPOSIT unloads into storage at the drone's current station. Every deployed drone under control runs its script; drone_control raises drone damage, accuracy, mining yield, and repair by 1% per level. Pass empty script to clear.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"drone_id": "<drone_id>",
"script": "<script>"
},
"name": "upload_drone_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | DroneLang script source (max 2000 chars). Pass empty string to clear. | |
| drone_id | Yes | ID of the drone to program | |
| session_id | Yes | Your session ID from login/register |