Tools Reference

Tools: Logs & Health

Observability tools let you read project logs, search for errors, run tests, and monitor system health.


zeeb_read_logs

Read recent log output from the project.

zeeb_read_logs(lines?: int, level?: str, project_id) → str

Arguments:

NameTypeDescription
linesint?Number of log lines to return (default: 100)
levelstring?Filter by log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
project_idstringUUID of the target project

Returns: Recent log lines with timestamps and levels.

Example prompt: "Show me the last 50 error logs from my project"


zeeb_search_logs

Search for a pattern in the project logs.

zeeb_search_logs(query: str, lines?: int, project_id) → str

Arguments:

NameTypeDescription
querystringText or regex pattern to search for
linesint?Max lines to return (default: 50)
project_idstringUUID of the target project

Example prompt: "Find all 500 errors in the logs"


zeeb_run_tests

Run the project's test suite.

zeeb_run_tests(app?: str, test_path?: str, project_id) → str

Arguments:

NameTypeDescription
appstring?Run only tests for this app
test_pathstring?Specific test file or class to run
project_idstringUUID of the target project

Returns: Test results with pass/fail counts and tracebacks for failures.

Example prompt: "Run the tests for the blog app"


zeeb_create_health_endpoint

Add a /health liveness endpoint to the project.

zeeb_create_health_endpoint(project_id) → str

Creates a GET /health route that returns:

{
  "status": "ok",
  "timestamp": "2026-01-01T00:00:00Z",
  "version": "1.0.0"
}

This endpoint is required for production readiness (zeeb_check_production_readiness will flag if missing).


zeeb_check_system_health

Check the health of the project's runtime (database connection, migrations, etc.).

zeeb_check_system_health(project_id) → str

Checks:

CheckDescription
Database connectionCan the project connect to its database?
Pending migrationsAre there unapplied migrations?
App registryAre all apps loading without errors?
Preview statusIs the preview environment running?

zeeb_get_env

Read environment variables set for the project.

zeeb_get_env(project_id) → str

Returns: Current environment variable names (values may be masked for sensitive keys).


zeeb_set_env

Set an environment variable for the project.

zeeb_set_env(key: str, value: str, project_id) → str

The project preview is restarted automatically after setting environment variables.


zeeb_delete_env

Delete an environment variable.

zeeb_delete_env(key: str, project_id) → str

zeeb_get_settings

Read the current Django/zeebpy settings for the project.

zeeb_get_settings(project_id) → str

Returns: Key settings values (DEBUG, INSTALLED_APPS, DATABASES, etc.).


Notes

  • Logs come from the live preview container — they reflect the running application.
  • zeeb_run_tests uses pytest under the hood.
  • Environment variables set via zeeb_set_env are persisted across preview restarts.