Run in Agentic Mode
agentic_runRuns a Xojo project through Agentic Mode and returns real compiler errors with file and line locations, using project-folder files when IDE scripting is unavailable.
Instructions
Agentic Mode only (Xojo 2026r3+): runs the project and returns its compile errors, if any. Unlike run_project, this reports real compiler errors with their locations. It works through files in the project folder rather than IDE scripting, so it also works when the IDE socket does not: it drops XojoRunProject.txt into the project folder and reads back XojoCompileErrors.txt. Compile errors fail the call, one ', line : ' per line. A successful run launches the app in the debugger; stop it with stop_project. If Xojo has not taken the request within 10 seconds, Agentic Mode is off or the project is not open: the request file is removed again and the call fails saying how to turn the mode on. Agentic Mode is the user's opt-in to having the project run to check edits, so this may be called without asking each time.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agentic_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | No | Absolute path of the folder containing the .xojo_project. Omit to use the project open in the IDE, which needs the IDE socket. | |
| wait_seconds | No | How long to wait for errors or a launch once Xojo starts the run (default 15, max 120). Raise it for large projects. |