defold-api-fetch
Defold API Reference
Fetch documentation from the links below (the URLs point to plain Markdown files).
Lua APIs (Most Common)
Lua Standard Library
| Namespace | URL |
|---|---|
| base (Base) | https://defold.com/llms/apis/base-lua.md |
| coroutine (Coroutine) | https://defold.com/llms/apis/coroutine-lua.md |
| debug (Debug) | https://defold.com/llms/apis/debug-lua.md |
| io (Io) | https://defold.com/llms/apis/io-lua.md |
| math (Math) | https://defold.com/llms/apis/math-lua.md |
| os (Os) | https://defold.com/llms/apis/os-lua.md |
| package (Package) | https://defold.com/llms/apis/package-lua.md |
| string (String) | https://defold.com/llms/apis/string-lua.md |
| table (Table) | https://defold.com/llms/apis/table-lua.md |
| bit (BitOp) | https://defold.com/llms/apis/bit-lua.md |
| socket (LuaSocket) | https://defold.com/llms/apis/socket-lua.md |
| zlib (Zlib) | https://defold.com/llms/apis/zlib-lua.md |
Box2D Physics
| Namespace | URL |
|---|---|
| b2d | https://defold.com/llms/apis/b2d-lua.md |
| b2d.body | https://defold.com/llms/apis/b2d.body-lua.md |
Editor Scripting
| Namespace | URL |
|---|---|
| editor (Editor) | https://defold.com/llms/apis/editor-lua.md |
Extension APIs
Note: Extension APIs (
extension-*) require the corresponding extension to be added as a dependency ingame.project. To learn how to install and configure a specific extension, use thedefold-docs-fetchskill to look up its documentation page.
C++ Native Extension APIs
Usage
When you need API documentation:
- Identify the namespace (e.g.,
go,gui,vmath) - Fetch the corresponding URL (all URLs are plain Markdown — fetch and read the raw content)
- Example: fetch
https://defold.com/llms/apis/go-lua.md
More from indiesoftby/defold-agent-config
defold-project-setup
Downloads Defold project dependencies into .deps/ folder. Also provides recommended game.project settings. Use FIRST before any other task when .deps/ folder is missing or empty, or after editing dependency URLs in game.project. Also use when creating a new project, configuring game.project, or asking about recommended project settings.
10xmath-usage
Provides xmath API reference and in-place math optimization patterns for Defold. Use when writing performance-critical math code, optimizing vector/quaternion/matrix operations, or when the user mentions xmath, zero-allocation math, or reducing Lua GC pressure.
1defold-scripts-editing
Creates and edits Defold Lua script files (.script, .gui_script, .render_script, .editor_script) and plain Lua modules (.lua). Use when asked to create, modify, or configure any Defold script or Lua module.
1monarch-screen-setup
Organizes screens and popups in a Defold game using Monarch screen manager. Use when creating new screens, popups, or setting up navigation between them.
1defold-skill-maintain
Maintains Defold agent skills. Use when asked to update link lists in api-fetch/docs-fetch/examples-fetch skills, create or update proto file references, or fetch proto schemas.
1defold-assets-search
Searches the Defold Asset Store for community libraries and extensions. Use BEFORE writing custom modules for pathfinding, RNG, UI, save/load, localization, tweening, input handling, etc. Helps find, compare, and install Defold dependencies.
1