Skip to content
Back to skills

Dt Js Runtime

ASecurity

Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.

  • 161 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 1, 2026
ai-agentsjavascripttypescriptjavanodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned October 1, 2026

npx -y skills add Dynatrace/dynatrace-for-ai --skill dt-js-runtime --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dt Js Runtime?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dt Js Runtime
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dynatrace-dt-js-runtime/badge)](https://www.skillsdirectory.com/skills/dynatrace-dt-js-runtime)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dt-js-runtime
description: Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.
license: Apache-2.0
---

# 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:

```js
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](references/limits-and-restrictions.md) | Timeout / memory / I/O quotas; what's forbidden (`eval`, WebSocket, sockets, filesystem) |
| [references/apis-and-modules.md](references/apis-and-modules.md) | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) |
| [references/fetch.md](references/fetch.md) | Calling internal `/platform/...` APIs or external URLs, credential vault, outbound allowlist |
| [references/sdk.md](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.

```dtctl
# 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 — the parsed object is the function's argument
dtctl exec function -f script.js --payload '{"key":"value"}'
```

The function may accept an optional parameter. `--payload` is parsed and passed
as that argument directly — it is not wrapped in an `event.payload` field:

```js
export default async function(payload) {
  // with --payload '{"key":"value"}', payload is {"key": "value"}
  return payload.key;
}
```

Load the **`dynatrace-control`** skill for authentication setup, context switching, and the full `exec function` reference.

Files in this skill

  • SKILL.md2.1 KB
  • references/apis-and-modules.md1.6 KB
  • references/fetch.md1.7 KB
  • references/limits-and-restrictions.md1.2 KB
  • references/sdk.md5 KB
  • references/sdks/app-engine-registry/README.md1.5 KB
  • references/sdks/app-engine-registry/appEngineRegistryAppsClient.md1.1 KB
  • references/sdks/app-engine-registry/appEngineRegistrySchemaManifestClient.md650 B
  • references/sdks/app-engine-registry/types.md904 B
  • references/sdks/app-environment/README.md1.1 KB
  • references/sdks/app-environment/functions.md946 B
  • references/sdks/app-environment/types.md216 B
  • references/sdks/app-settings-v1/README.md1 KB
  • references/sdks/app-settings-v1/appSettingsObjectsClient.md1.3 KB
  • references/sdks/app-settings-v1/types.md364 B
  • references/sdks/app-settings-v2/README.md2 KB
  • references/sdks/app-settings-v2/appSettingsObjectsClient.md2.6 KB
  • references/sdks/app-settings-v2/types.md1.1 KB
  • references/sdks/app-utils/README.md876 B
  • references/sdks/automation-utils/README.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…