> For the complete documentation index, see [llms.txt](https://pellix-1.gitbook.io/pellix-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pellix-1.gitbook.io/pellix-docs/functions/get_builtin_metatable.md). Agents can also search and read this documentation through its [MCP server](https://pellix-1.gitbook.io/pellix-docs/~gitbook/mcp).

# get\_builtin\_metatable

Retrieves internal meta tables for builtin types.

This can be useful if you want to extend basic types functionality, see [Extending builtin types](https://pellix-1.gitbook.io/pellix-docs/examples/extending-builtin-types.md).

:warning: **Warning:** Please do not change `__index` value in this meta table or you'll lose access to the builtin members.

```lua
get_builtin_metatable(name: string): table | nil
```

**Available meta tables:**

* entity
* vector<2>
* vector<3>
* vector<4>
