# Read/Write API for Xojo IDE Code Editor to enable AI Integration

**URL:** <https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421>\
**Category:** Bugs and Feature Requests\
**Created:** [May 23, 2025, 11:09am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421 "2025-05-23T11:09:46Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [May 28, 2025, 10:36am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/21 "2025-05-28T10:36:46Z")

</div>

Hint:

Just save a project you have to xml format and then provide it to AI (the latest chatGPT4 o4 is fantastic for code).  
No need to add any text. It will give you full report of the project. Including things you could improve, optimise or do differently - including code to do so.  
Even suggestions to add features (and of course can provide code for this too).

Yes, it sometimes mixes API1 and 2 but this is easy to fix (even by asking it).

It’s all copy/paste/create UI controls/… now. It would be fantastic if this implemented in the IDE.  
Just take a look at how it is implemented in Xcode! 😏

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [May 28, 2025, 10:39am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/22 "2025-05-28T10:39:29Z")

</div>

With Copilot on Github, I can give the AI ​​the path to a file (even a private one) in my repos and limit analyses to those files.

_Let’s see who’s the first to shout, “I’m not giving my code to any AI!!!” PS: That’s your decision…_ 😆

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [May 28, 2025, 10:41am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/23 "2025-05-28T10:41:57Z")

</div>

> [@Sascha\_S](#):
>
> _Let’s see who’s the first to shout, “I’m not giving my code to any AI!!!” PS: That’s your decision…_ 😆

Indeed. 😂

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [May 28, 2025, 10:46am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/24 "2025-05-28T10:46:02Z")

</div>

FWW .. an example of a full project that was written fro about 80% with AI (including GUI layouts etc..) is a small app I made:

[https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://apps.apple.com/be/app/metadata-lab-exif-editor/id6740704659%3Fmt%3D12&ved=2ahUKEwij-OX0\_cWNAxUtVKQEHeYLHyYQFnoECCEQAQ&usg=AOvVaw2UjBz1x6\_AGvu7\_LnITXX9](https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://apps.apple.com/be/app/metadata-lab-exif-editor/id6740704659%3Fmt%3D12&ved=2ahUKEwij-OX0_cWNAxUtVKQEHeYLHyYQFnoECCEQAQ&usg=AOvVaw2UjBz1x6_AGvu7_LnITXX9)

BTW for this app I asked AI to use MBSPlugins too (almost all controls are macOS Native including NSTableView). Made this is in 3-4 days. 🙂

---

<div class="post-metadata">

**Author:** ![Scott\_C](https://forum.xojo.com/user_avatar/forum.xojo.com/scott_c/32/19612_2.png) [@Scott\_C](https://forum.xojo.com/u/Scott_C)\
**Post date:** [May 28, 2025, 3:42pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/25 "2025-05-28T15:42:05Z")

</div>

> [@ChristopheDV](#):
>
> this claim is about as wrong as it can be.

Well, it wouldn’t be the first time I was wrong about something.

Nevertheless, I’ll hang onto my critical thinking skills for as long as I’m capable and hope that if Xojo Inc. does incorporate direct AI features into the IDE - that it has an “off” switch. Otherwise, it’s _adiós mis amigos_.

Good luck 🙂

---

<div class="post-metadata">

**Author:** ![PhilippeP](https://forum.xojo.com/user_avatar/forum.xojo.com/philippep/32/5348_2.png) [@PhilippeP](https://forum.xojo.com/u/PhilippeP)\
**Post date:** [May 28, 2025, 8:26pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/26 "2025-05-28T20:26:57Z")

</div>

> [@Eric\_Baumgartner](#):
>
> Ideally this would not be a homegrown API: one already exists. Just make Xojo an [MCP host](https://modelcontextprotocol.io/introduction)

ah yes i was thinking about too, i’ll host an MCP server too soon  
MPCs are the new APIs ?

---

<div class="post-metadata">

**Author:** ![PhilippeP](https://forum.xojo.com/user_avatar/forum.xojo.com/philippep/32/5348_2.png) [@PhilippeP](https://forum.xojo.com/u/PhilippeP)\
**Post date:** [May 28, 2025, 8:36pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/27 "2025-05-28T20:36:41Z")

</div>

> [@Eric\_Baumgartner](#):
>
> Ideally this would not be a homegrown API: one already exists. Just make Xojo an [MCP host](https://modelcontextprotocol.io/introduction).

> **[GitHub - punkpeye/awesome-mcp-servers: A collection of MCP servers.](https://github.com/punkpeye/awesome-mcp-servers)**
>
> A collection of MCP servers.

---

<div class="post-metadata">

**Author:** ![Dustin\_Schell](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e99b99/32.png) [@Dustin\_Schell](https://forum.xojo.com/u/Dustin_Schell)\
**Post date:** [August 7, 2025, 6:48pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/28 "2025-08-07T18:48:57Z")

</div>

I really want the ability to turn GPT or other models loose on my entire code base if I choose. I want to be able to ask AI about a bug in particular source code without the need to export that source code and take it to an external web page to use AI. I want to be able to ask questions of AI about my code base and the AI have all the context it needs because it has access to the source. This is already possible and works incredibly well on certain tasks in other IDE’s. It currently makes my mandatory-work time in Xojo feel antiquated when I switch over from VSCode or Cursor.. I definitely vote in favor of bringing AI into Xojo in meaningful ways, not just auto completers’..

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [August 8, 2025, 12:02am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/29 "2025-08-08T00:02:18Z")

</div>

I’m really surprised that no one has done this with IDE automation yet. You can easily get the source of the current editor and set it later. The IDE Communicator socket would be an easy way to connect.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [August 8, 2025, 5:10am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/30 "2025-08-08T05:10:27Z")

</div>

I have great respect for you and don’t mean to sound rude, but perhaps it’s because no one here is convinced that the current capabilities of the Xojo IDE API offer what would be necessary to even come close to what, for example, the Xcode Editor offers. [And the Xcode Editor only offers the bare minimum when it comes to predictive coding](https://aslan.md/predictive-code-completion-examples-in-xcode-16/).

🤷

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [August 8, 2025, 11:16am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/31 "2025-08-08T11:16:50Z")

</div>

Didn’t say that it was. But you could make your own editor that does predictive code which pulls code from the ide and puts it back when you’re done.

---

<div class="post-metadata">

**Author:** ![Odeyani\_Lugardo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/f07891/32.png) [@Odeyani\_Lugardo](https://forum.xojo.com/u/Odeyani_Lugardo)\
**Post date:** [August 8, 2025, 12:19pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/32 "2025-08-08T12:19:51Z")

</div>

Hacking something that should be a basic functionality is kind of a waste of time, it is easier to use that time porting to another tool. Also, a hack can be broken on the very next release

---

<div class="post-metadata">

**Author:** ![Sveinn\_Runar\_Sigurdsson](https://forum.xojo.com/user_avatar/forum.xojo.com/sveinn_runar_sigurdsson/32/23640_2.png) [@Sveinn\_Runar\_Sigurdsson](https://forum.xojo.com/u/Sveinn_Runar_Sigurdsson)\
**Post date:** [August 8, 2025, 3:53pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/33 "2025-08-08T15:53:42Z")

</div>

Dear all…

… I use React / Flutter / Dart, more than Xojo, and I can not underline enough how important it is, to integrate AI into the development tools.

If not… r.i.p.

---

<div class="post-metadata">

**Author:** ![GarryPettet](https://forum.xojo.com/user_avatar/forum.xojo.com/garrypettet/32/31_2.png) [@GarryPettet](https://forum.xojo.com/u/GarryPettet)\
**Post date:** [December 7, 2025, 10:57am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/34 "2025-12-07T10:57:57Z")

</div>

I am very interested in this.

I’ve done nothing with IDE communication before but I’m a little fed up of copy and pasting code from the IDE into Claude’s web interface. You can create a Claude project and include Xojo files in it but you have to remember to update them every time you touch code in the IDE.

Is there much example code out there for IDE communication? I would be willing to give this a crack…

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [December 7, 2025, 11:37am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/35 "2025-12-07T11:37:45Z")

</div>

AI integration is extremely important and urgently needed to keep up with all other coding tools.  
The attempt that Xojo Inc is currently making with Jane is disappointing, and they would be better off using their resources for bug fixes and keeping up with all the changes in macOS (and to a lesser extent Windows). There is no need to reinvent the wheel here so just get rid of Jane and do not release Xojo with it. Don’t waste valuable resources.  
Xojo simply needs an API so that existing external AI tools such as Cursor can communicate with Xojo itself. That’s all that’s needed.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [December 7, 2025, 11:51am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/36 "2025-12-07T11:51:16Z")

</div>

Claude Code and this :

 ![image](https://forum.xojo.com/uploads/default/original/3X/0/4/04ae3b43e982651e1044e431cee93b7db34f55a9.jpeg)

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [December 7, 2025, 1:04pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/37 "2025-12-07T13:04:48Z")

</div>

Look at IDE Scripting in the LR every IDE specific command is in there. Otherwise it’s just xojoscript.

The things I think you’re going to be most interested in have to do with “location” and “text” in the project commands. Location lets you select a project item and text allows you to set and get the contents of the code editor.

There’s an example project for IDE Communicator v2. (V1 requires you to reconnect after every command, v2 does not)

---

<div class="post-metadata">

**Author:** ![olivierV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/919ad9/32.png) [@olivierV](https://forum.xojo.com/u/olivierV)\
**Post date:** [January 25, 2026, 10:11am UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/38 "2026-01-25T10:11:19Z")

</div>

Hello Jean-Yves, is this an example of what you would like, or is it an app that already works?

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [January 25, 2026, 4:25pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/39 "2026-01-25T16:25:44Z")

</div>

this is an app I made and use for a few months now, and that works fine

> **[Xojo AI Comm](https://www.verynicesw.fr/xojo-ai-comm.html)**
>
> This a small but usefull application to connect Xojo error list to the external world, like for example an AI chat. I use it with Claude Code essentially, and it saves me a lot of context tokens. Xojo does not let you copy the error…

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [January 25, 2026, 7:33pm UTC](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421/40 "2026-01-25T19:33:35Z")

</div>

Gemini have been updated for Xojo (apparently) in the previous some days.

I used it minutes ago for a Xojo question and see the difference: hudge. Even for a simple question.

[Previous page](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421.md?page=1)

[Next page](https://forum.xojo.com/t/read-write-api-for-xojo-ide-code-editor-to-enable-ai-integration/85421.md?page=3)
