Skip to main content

Description

Returns a list of all service instances that are direct children of the game object. Each service includes its name, class name, and direct child count. This is useful for understanding what services are present in your game and getting an overview of top-level structure.

HTTP Endpoint

POST /tool/get_services

Request Parameters

No parameters required.

Response Format

services
array
Array of service objects

Example

const response = await fetch('http://127.0.0.1:7766/tool/get_services', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({})
});

const data = await response.json();
console.log(data.result);

// Example output:
// {
//   "services": [
//     {
//       "name": "Workspace",
//       "className": "Workspace",
//       "childCount": 12
//     },
//     {
//       "name": "Players",
//       "className": "Players",
//       "childCount": 0
//     },
//     {
//       "name": "Lighting",
//       "className": "Lighting",
//       "childCount": 3
//     },
//     {
//       "name": "ReplicatedStorage",
//       "className": "ReplicatedStorage",
//       "childCount": 8
//     },
//     {
//       "name": "ServerScriptService",
//       "className": "ServerScriptService",
//       "childCount": 15
//     }
//   ]
// }

Implementation Details

From InstanceTools.lua:63-73:
  • Iterates through game:GetChildren()
  • Returns name, class name, and child count for each service
  • Always succeeds (no error cases)

Build docs developers (and LLMs) love