AGENT SKILL
defold-api-fetch
Fetches Defold API documentation. Use when working with Defold engine APIs, looking up Lua/C++ functions, or needing API reference for game development.
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 66
- Forks
- 24
01 前言 Front Matter
- name
- defold-api-fetch
- description
- Fetches Defold API documentation. Use when working with Defold engine APIs, looking up Lua/C++ functions, or needing API reference for game development.
03 SKILL.md 正文
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