Dt js runtime
Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.From its SKILL.md
npx -y skills add Dynatrace/dynatrace-for-ai --skill dt-js-runtimeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- runs commandsInstructs the agent to run 3 commands, including `dtctl exec function --code 'export default async function() { return "hello" }'` and 2 more.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.0 KB, 429 tokens by cl100k_base, as published. Nobody here has run it
Dynatrace JavaScript Runtime
The Dynatrace JS runtime is a server-side AppEngine sandbox that executes JavaScript/TypeScript.
Function contract
Every entry point must export a default async function:
export default async function () {
// ...
return result;
}
ES module syntax required. TypeScript accepted (type annotations, interfaces, generics). No other export shape is supported.
References
Start here, then load only the file you need.
| File | When to load |
|---|---|
| references/limits-and-restrictions.md | Timeout / memory / I/O quotas; what's forbidden (eval, WebSocket, sockets, filesystem) |
| references/apis-and-modules.md | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) |
| references/fetch.md | Calling internal /platform/... APIs or external URLs, credential vault, outbound allowlist |
| references/sdk.md | Any @dynatrace-sdk/* package — the index routes you to the right per-SDK file |
Running a function with dtctl
Use dtctl exec function to run JS runtime code without deploying an app.
# Run inline code
dtctl exec function --code 'export default async function() { return "hello" }'
# Run from file
dtctl exec function -f script.js
# Pass JSON input — accessed as event.payload inside the function
dtctl exec function -f script.js --payload '{"key":"value"}'
The function may accept an optional event parameter:
export default async function(event) {
const { payload } = event; // from --payload
// event.environmentId also available
return payload;
}
Load the dynatrace-control skill for authentication setup, context switching, and the full exec function reference.
What ships with it: 123 files
156.1 KB alongside SKILL.md
references/
- apis-and-modules.md1.6 KB
- fetch.md1.7 KB
- limits-and-restrictions.md1.2 KB
- sdk.md5.0 KB
- sdks/app-engine-registry/appEngineRegistryAppsClient.md1.1 KB
- sdks/app-engine-registry/appEngineRegistrySchemaManifestClient.md650 B
- sdks/app-engine-registry/README.md1.5 KB
- sdks/app-engine-registry/types.md904 B
- sdks/app-environment/functions.md946 B
- sdks/app-environment/README.md1.1 KB
- sdks/app-environment/types.md216 B
- sdks/app-settings-v1/appSettingsObjectsClient.md1.3 KB
- sdks/app-settings-v1/README.md1.0 KB
- sdks/app-settings-v1/types.md364 B
- sdks/app-settings-v2/appSettingsObjectsClient.md2.6 KB
- sdks/app-settings-v2/README.md2.0 KB
- sdks/app-settings-v2/types.md1.1 KB
- sdks/app-utils/README.md876 B
- sdks/automation/actionExecutionsClient.md416 B
- sdks/automation/actionsSampleResultClient.md364 B
- sdks/automation/businessCalendarsClient.md1.3 KB
- sdks/automation/eventTriggersClient.md372 B
- sdks/automation/executionsClient.md1.9 KB
- sdks/automation/README.md2.0 KB
- sdks/automation/schedulesClient.md669 B
- sdks/automation/schedulingRulesClient.md1.1 KB
- sdks/automation/settingsClient.md774 B
- sdks/automation/types.md2.5 KB
- sdks/automation-utils/constants.md438 B
- sdks/automation-utils/functions.md1.1 KB
- sdks/automation-utils/README.md1.4 KB
- sdks/automation-utils/types.md287 B
- sdks/automation/versionClient.md291 B
- sdks/automation/webhookHandlersClient.md615 B
- sdks/automation/workflowsClient.md2.3 KB
- sdks/bucket-management/bucketDefinitionsClient.md1.6 KB
- sdks/bucket-management/README.md1.4 KB
- sdks/bucket-management/types.md681 B
- sdks/classic-environment-v1/cluster.md311 B
- sdks/classic-environment-v1/deployment.md1.9 KB
83 more files not listed here. See all 123 in the repository.
Gives 0 of the 12 instructions most secrets credentials skills give in 429 tokens
Counted across 219 of the 226 authors here whose files we hold, read 2026-09-06
- Rotate secrets regularlyin 12 of 219, across 9 files
- Use different secrets per environmentin 10 of 219, across 7 files
- Mask secrets in logsin 10 of 219, across 7 files
- Enable audit loggingin 10 of 219, across 9 files
- Encrypt secrets at restin 9 of 219, across 6 files
- Use short-lived tokens when possiblein 9 of 219, across 6 files
- Rotate exposed credentials immediatelyin 9 of 219, across 6 files
- Use hierarchical numbering for numbered sequencesin 9 of 219
- Identify secret types, owners, and rotation requirementsin 8 of 219, across 5 files
- Choose a secrets backend and access modelin 8 of 219, across 5 files
- Validate rotation and audit loggingin 8 of 219, across 5 files
- Document secret requirementsin 8 of 219, across 5 files
Said here and by no other author read
- export a default async function as the entry point
- use ES module syntax
- run functions via dtctl exec function without deploying
- access payload through the event parameter
- load the dynatrace-control skill for authentication setup
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.