Reference

lessly_get_logs

Read build or runtime logs for a deployment.

Tool

lessly_get_logs

Read build or runtime logs for a deployment.

Returns log lines for the given deployment, scoped to either the build phase or the runtime worker. Supports follow=true for live tailing while a build is in progress.

Arguments

Name Type Required Description
deployment_id string Id of the deployment to read logs from.
source "build" | "runtime" Which log stream to read. build covers the build step; runtime covers requests served by the deployment. default: runtime
since string ISO-8601 timestamp or relative duration like 15m or 2h. Lines older than this are dropped.
follow boolean Stream new lines as they arrive instead of returning a single snapshot. default: false
limit number Maximum number of lines to return when follow is false. Capped at 1000. default: 200

Try it

Tail the runtime logs for deployment dpl_8x2k for the last 15 minutes.

When to use

Returns log lines for the given deployment, scoped to either the build phase or the runtime worker. Supports follow=true for live tailing while a build is in progress.

Example

Ask your agent something like this:

Tail the runtime logs for deployment dpl_8x2k for the last 15 minutes.

The agent will invoke lessly_get_logs with these arguments:

json
{
  "deployment_id": "dpl_8x2k",
  "source": "runtime",
  "since": "15m",
  "follow": true
}

Esc

Start typing to search the docs.

navigate select