| Core | — | functions | builtin | Base/core functions |
| print | Core | function | builtin | Print values |
| input | Core | function | builtin | Ask for user input |
| assert | Core | function | builtin | Simple assertion |
| error | Core | function | builtin | Cause runtime error |
| typeof | Core | function | builtin | Name of value types |
| tostring | Core | function | builtin | Convert value to string |
| tonumber | Core | function | builtin | Convert value to number |
| gc | Core | function | builtin | Garbage collect |
| eval | Core | function | builtin | Evaluate Tea source |
| dump | Core | function | builtin | Tea function to bytecode |
| loadfile | Core | function | builtin | Load and parse file |
| loadstring | Core | function | builtin | Load and parse string |
| pcall | Core | function | builtin | Run function in protected mode |
| rawequal | Core | function | builtin | Raw equality |
| hasattr | Core | function | builtin | Check attribute presence |
| getattr | Core | function | builtin | Get an attribute name |
| setattr | Core | function | builtin | Set an attribute name |
| delattr | Core | function | builtin | Delete an attribute name |
| Buffer | — | class | builtin | Growable sequence of byte characters |
| Buffer.iter | Buffer | method | builtin | ? |
| Debug | — | module | modules | Internal debug informations |
| debug.funcinfo | Debug | function | modules | Function header information |
| debug.funck | Debug | function | modules | Function constants pool |
| debug.funcbc | Debug | function | modules | Function bytecodes |
| debug.funcuv | Debug | function | modules | Function upvalues information |
| debug.funcline | Debug | function | modules | Function line information |
| IO | — | module | modules | Input/output functionality |
| io.stdin | IO | attribute | modules | Input file |
| io.stdout | IO | attribute | modules | Output file |
| io.stderr | IO | attribute | modules | Output error file |
| io.open | IO | function | modules | Open a file |
| io.popen | IO | function | modules | Open a pipe |
| File | IO | class | modules | An open file handle |
| File.write | IO | method | modules | Write values to file |
| File.read | IO | method | modules | Read from file |
| File.readline | IO | method | modules | Read line from file |
| File.seek | IO | method | modules | Move file position indicator |
| File.flush | IO | method | modules | Flush file buffered data |
| File.setvbuf | IO | method | modules | Set file buffering mode |
| File.close | IO | method | modules | Close an open file |
| File.tostring | IO | method | modules | File tostring |
| File.iter | IO | method | modules | File iterator |
| List | — | class | builtin | Ordered collection values |
| List.len | List | attribute | builtin | Number of elements |
| List.new | List | method | builtin | Create new list |
| List.add | List | method | builtin | Append values |
| List.remove | List | method | builtin | Remove specific value |
| List.delete | List | method | builtin | Delete element at index |
| List.clear | List | method | builtin | Empty a list |
| List.insert | List | method | builtin | Insert value at index |
| List.extend | List | method | builtin | Concatenate with another list |
| List.reverse | List | method | builtin | Reverse list elements order |
| List.contains | List | method | builtin | Check value presence |
| List.count | List | method | builtin | Count occurrences of value |
| List.fill | List | method | builtin | Value fill all elements |
| List.sort | List | method | builtin | Sort all elements |
| List.index | List | method | builtin | Get index of value |
| List.join | List | method | builtin | Join list into string |
| List.copy | List | method | builtin | Get shallow copy |
| List.find | List | method | builtin | Find first element |
| List.flat | List | method | builtin | Flatten sub-list elements |
| List.map | List | method | builtin | Map new list |
| List.filter | List | method | builtin | Filter new list |
| List.reduce | List | method | builtin | Reduce new list |
| List.foreach | List | method | builtin | Callback iterate |
| List.iter | List | method | builtin | List iterator |
| List.+ | List | operator | builtin | New concatenated list |
| Map | — | class | builtin | Key-value pairs collection |
| Map.count | Map | attribute | builtin | Number of key-value entries |
| Map.keys | Map | attribute | builtin | List of map keys |
| Map.values | Map | attribute | builtin | List of map values |
| Map.new | Map | method | builtin | Create new map |
| Map.get | Map | method | builtin | Get key’s value |
| Map.set | Map | method | builtin | Set/update key |
| Map.update | Map | method | builtin | Merge key-values |
| Map.clear() | Map | method | builtin | Clear all map entries |
| Map.contains | Map | method | builtin | Check key presence |
| Map.delete | Map | method | builtin | Delete key entry |
| Map.copy | Map | method | builtin | Get shallow copy |
| Map.foreach | Map | method | builtin | Callback iterate |
| Map.iter | Map | method | builtin | Map iterator |
| Map.+ | Map | operator | builtin | New merged map |
| Math | — | module | modules | Maths |
| math.pi | Math | attribute | modules | The mathematical constant π (pi) |
| math.tau | Math | attribute | modules | The mathematical constant τ (tau) |
| math.e | Math | attribute | modules | The mathematical constant e |
| math.phi | Math | attribute | modules | The golden ratio φ (phi) |
| math.infinity | Math | attribute | modules | Positive infinity. |
| math.nan | Math | attribute | modules | “Not a Number” |
| math.maxinteger | Math | attribute | modules | The maximum safe integer. |
| math.mininteger | Math | attribute | modules | The minimum safe integer. |
| math.min() | Math | function | modules | Smallest value among arguments |
| math.max() | Math | function | modules | Largest value among arguments |
| math.mid() | Math | function | modules | Middle value |
| math.clamp() | Math | function | modules | The function clamp restricts a numeric value to a specified range. |
| math.floor | Math | function | modules | The function floor provides the largest integer less than or equal to a number. |
| math.ceil | Math | function | modules | The function ceil provides the smallest integer greater than or equal to a number. |
| math.round | Math | function | modules | Rounds to nearest integer. |
| math.acos | Math | function | modules | Arc cosine in radians. |
| math.acosh | Math | function | modules | Inverse hyperbolic cosine |
| math.cos | Math | function | modules | Cosine in radians. |
| math.cosh | Math | function | modules | Hyperbolic cosine |
| math.asin | Math | function | modules | Arc sine in radians. |
| math.asinh | Math | function | modules | Inverse hyperbolic sine |
| math.sin | Math | function | modules | Sine in radians |
| math.sinh | Math | function | modules | Hyperbolic sine |
| math.atan | Math | function | modules | Arc tangent in radians. |
| math.atanh | Math | function | modules | Inverse hyperbolic tangent |
| math.atan2 | Math | function | modules | Arc tangent of two coordinates in radians |
| math.tan | Math | function | modules | Tangent in radians |
| math.tanh | Math | function | modules | Hyperbolic tangent |
| math.sign | Math | function | modules | Sign of a number |
| math.abs | Math | function | modules | Absolute value |
| math.sqrt | Math | function | modules | Square root |
| math.deg | Math | function | modules | Converts radians to degrees |
| math.rad | Math | function | modules | Converts from degrees to radians |
| math.exp | Math | function | modules | e raised to the power of x |
| math.trunc | Math | function | modules | Integer part of number |
| math.frexp | Math | function | modules | Normalized fraction and an exponent |
| math.ldexp | Math | function | modules | x * 2^exp |
| math.log | Math | function | modules | Natural logarithm (base e) |
| math.log1p | Math | function | modules | Natural logarithm of 1 + x |
| math.log2 | Math | function | modules | Base-2 logarithm |
| math.log10 | Math | function | modules | Base-10 logarithm |
| math.classify | Math | function | modules | Classify floating-point value |
| math.isinfinity | Math | function | modules | Check for infinity |
| math.isnan | Math | function | modules | Check for “Not a Number” |
| OS | — | module | modules | OS functions |
| os.name | OS | attribute | modules | Simple OS name |
| os.arch | OS | attribute | modules | Simple architecture name |
| os.env | OS | attribute | modules | Environments map |
| os.getenv | OS | function | modules | Get env variable |
| os.setenv | OS | function | modules | Set env variable |
| os.execute | OS | function | modules | Simple command execution |
| os.remove | OS | function | modules | Remove file |
| os.rename | OS | function | modules | Rename file |
| os.mkdir | OS | function | modules | Create new directory |
| Random | — | module | modules | Pseudo-random number generation |
| random.seed | Random | function | modules | Init random number generator |
| random.random | Random | function | modules | Random number 0 to <1 |
| random.bool | Random | function | modules | Random bool |
| random.int | Random | function | modules | Random ranged int number |
| random.number | Random | function | modules | Random ranged number |
| random.range | Random | function | modules | Random number from range |
| random.choice | Random | function | modules | Random list element |
| random.shuffle | Random | function | modules | Randomly re-order list elements |
| Range | — | class | builtin | Sequence of numbers, from start to end using step |
| Range.start | Range | attribute | builtin | Start interval |
| Range.end | Range | attribute | builtin | End interval |
| Range.step | Range | attribute | builtin | Step interval |
| Range.len | Range | attribute | builtin | Range length |
| Range.new | Range | method | builtin | Create new range |
| Range.contains | Range | method | builtin | The contains method checks whether the specified number is found within the original range. |
| Range.reverse | Range | method | builtin | Reverse range intervals |
| Range.copy | Range | method | builtin | Get range copy |
| Range.iter | Range | method | builtin | Range iterator |
| String | — | class | builtin | A sequence of byte characters. |
| String.len | String | attribute | builtin | Byte length of a string. |
| String.upper | String | method | builtin | Uppercase a string |
| String.lower | String | method | builtin | Lowercase a string |
| String.reverse | String | method | builtin | Reverse a string |
| String.split | String | method | builtin | Split a string into a list |
| String.contains | String | method | builtin | Check presence of substring |
| String.startswith | String | method | builtin | Check presence of prefix |
| String.endswith | String | method | builtin | Check presence of suffix |
| String.leftstrip | String | method | builtin | Strip any leading white spaces |
| String.rightstrip | String | method | builtin | Strip any trailing white spaces |
| String.strip | String | method | builtin | String leading and trailing white spaces |
| String.count | String | method | builtin | Count presences of substring |
| String.find | String | method | builtin | Find substring |
| String.replace | String | method | builtin | Replace occurrences of a string |
| Sys | — | module | modules | The sys module provides access to system-specific parameters and functions. |
| sys.bits | Sys | attribute | modules | Target architecture bits |
| sys.byteorder | Sys | attribute | modules | Byte order |
| sys.argv | Sys | attribute | modules | Command-line arguments |
| sys.version | Sys | attribute | modules | Version map |
| sys.loaders | Sys | attribute | modules | Importer loaders |
| sys.exit() | Sys | function | modules | Exit program interpreter |
| Time | — | module | modules | The time module provides functions to interact with time. |
| time.sleep | Time | function | modules | Suspend execution |
| time.clock | Time | function | modules | Processor time |
| time.format | Time | function | modules | Covert time into a string |
| time.time | Time | function | modules | Current timestamp |
| time.diff | Time | function | modules | time.diff() |
| UTF-8 | — | module | modules | Unicode UTF-8 manipulation |
| utf8.len | UTF-8 | function | modules | utf8.len() |
| utf8.char | UTF-8 | function | modules | utf8.char() |
| utf8.ord | UTF-8 | function | modules | utf8.ord() |
| utf8.reverse | UTF-8 | function | modules | utf8.reverse() |
| utf8.iter | UTF-8 | function | modules | utf8.iter() |
| FFI | — | module | bundled | Foreign function interface |
| ffi.cdef | FFI | function | bundled | Registers C types, typedefs and function prototypes. |
| ffi.load | FFI | function | bundled | Loads a shared library. |
| ffi.cnew | FFI | function | bundled | Allocates a new C data object. |
| ffi.cast | FFI | function | bundled | Converts a value to a C type. |
| ffi.typeof | FFI | function | bundled | Returns the C type of a value or declaration. |
| ffi.addressof | FFI | function | bundled | Returns a pointer to the storage of a C data object. |
| ffi.gc | FFI | function | bundled | Sets the finalizer of a C data object. |
| ffi.sizeof | FFI | function | bundled | Returns the size of a C type in bytes. |
| ffi.offsetof | FFI | function | bundled | Returns the byte offset of a record field. |
| ffi.alignof | FFI | function | bundled | Returns the alignment of a C type in bytes. |
| ffi.istype | FFI | function | bundled | Checks whether a C data object has a given type. |
| ffi.tonumber | FFI | function | bundled | Converts scalar C data to a number. |
| ffi.string | FFI | function | bundled | Reads a Teascript string from C memory. |
| ffi.copy | FFI | function | bundled | Copies bytes into C memory. |
| ffi.fill | FFI | function | bundled | Fills C memory with a byte value. |
| ffi.errno | FFI | function | bundled | Gets or sets the C errno value. |
| ffi.abi | FFI | function | bundled | Tests the target ABI. |
| ffi.C | FFI | attribute | bundled | The process C library. |
| CData | FFI | class | bundled | A value living in C memory. |
| CType | FFI | class | bundled | A description of a C type. |
| CLib | FFI | class | bundled | A loaded C shared library. |
| SQLite3 | — | module | bundled | Embedded SQL database access through SQLite: open databases, run queries with bound parameters, use prepared statements and transactions. |
| sqlite3.open | SQLite3 | function | bundled | Opens a SQLite database. |
| Database | SQLite3 | class | bundled | An open SQLite database connection. |
| Database.exec | SQLite3 | method | bundled | Executes one or more SQL statements. |
| Database.run | SQLite3 | method | bundled | Executes a statement and reports its effect. |
| Database.query | SQLite3 | method | bundled | Runs a query and returns all rows. |
| Database.row | SQLite3 | method | bundled | Returns the first row of a query. |
| Database.value | SQLite3 | method | bundled | Returns the first column of the first row. |
| Database.prepare | SQLite3 | method | bundled | Prepares a reusable statement. |
| Database.transaction | SQLite3 | method | bundled | Runs a function inside a transaction. |
| Database.begin | SQLite3 | method | bundled | Begins a transaction. |
| Database.commit | SQLite3 | method | bundled | Commits the current transaction. |
| Database.rollback | SQLite3 | method | bundled | Rolls back the current transaction. |
| Database.close | SQLite3 | method | bundled | Closes the database. |
| Statement | SQLite3 | class | bundled | A prepared SQL statement that can be run repeatedly. |
| Statement.run | SQLite3 | method | bundled | Executes the prepared statement. |
| Statement.query | SQLite3 | method | bundled | Executes the prepared statement and returns all rows. |
| Statement.finalize | SQLite3 | method | bundled | Releases the prepared statement. |