pcc_trilobio_validate_script
Quick lint of a tcode-api Python script before submission to a Trilobio fleet controller. Wraps validateTcodeScript() from @pcc/trilobio. Surface check only — NOT a sandbox or sanitizer. Looks for: imports of tcode_api (presence required), obviously dangerous statements (subprocess, os.system, eval, exec, import, socket, urllib, requests, file writes), empty scripts, and missing top-level tcode commands. Returns { valid: boolean, errors: string[], warnings?: string[] }. Operators with allowArbitraryScripts=true should treat results as a hint — the fleet controller is the source of truth on safety. Note: TypeScript package helper (no HTTP call); for programmatic use, import { validateTcodeScript } from "@pcc/trilobio".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full Python source of the tcode-api script to lint |