{"actions":{"bootstrapAndRun":{"effect":"installs rote if missing, inspects, prepares, and asks before running","href":"https://play.modiqo.ai/install?play=rajat-yadav/context-window-guard@0.0.1","method":"GET","rel":"https://rote.dev/rels/bootstrap-and-run","requiresConsent":true,"responseMediaType":"text/x-shellscript"},"inspect":{"command":"rote play inspect https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1","effect":"read-only"},"installCliOnly":{"effect":"installs the rote CLI, nothing else","href":"https://play.modiqo.ai/install","method":"GET","rel":"https://rote.dev/rels/install-cli","requiresConsent":true,"responseMediaType":"text/x-shellscript"},"run":{"command":"rote play run https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1","effect":"executes the play locally after consent","headless":{"approvalAssertion":"--yes","approvalRequiredBeforeInvocation":true,"commandTemplate":"rote play run https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1 <name=value...> --yes","stdinPolicy":"never pipe input to automate the interactive Ready selector"},"requiresConsent":true}},"description":"Check prompts against LLM context windows, estimate tokens, flag safety margin","distribution":{"digest":"sha256:e2280291bb7561886ed028e617541d898cf3c1c19a8d1dc69fac32731613a515","mediaType":"application/vnd.modiqo.rote-flow","size":8620,"verifiedBy":"rote verifies the downloaded archive against this digest before it runs"},"effects":{"credentialsProvidedBy":"runner","credentialsRemainLocal":true,"declaredWrites":[],"publisherReceivesCredentials":false},"id":"https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1","inputPolicy":{"optionalWithDefault":"show_default_and_accept_override","optionalWithoutDefault":"omit_unless_supplied","required":"ask","secrets":"collect_locally_outside_conversation"},"links":{"docs":"https://rote.dev","page":"https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1","protocol":"https://play.modiqo.ai/.well-known/rote","self":"https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1.json"},"name":"context-window-guard","owner":{"kind":"org","slug":"rajat-yadav"},"parameters":[{"description":"Path to file containing the prompt text","input":{"allowCustom":true,"choices":[],"label":"Prompt file"},"name":"prompt_file","required":true,"type":"string"},{"default":"1000","description":"Max output tokens reserved for completion","input":{"allowCustom":true,"choices":[],"label":"Max tokens"},"name":"max_tokens","required":false,"type":"string"},{"default":"32000","description":"Context window limit (4096/8192/16384/32768/131072)","input":{"allowCustom":true,"choices":[],"label":"Limit"},"name":"limit","required":false,"type":"string"},{"default":"~/.rote/llm-health/context-reports.jsonl","description":"Path to report log file","input":{"allowCustom":true,"choices":[],"label":"Report log"},"name":"report_log","required":false,"type":"string"}],"preparation":[{"action":{"command":"rote play inspect https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1 --json","effect":"read-only"},"step":1,"type":"inspect_local_readiness"},{"references":["/parameters"],"step":2,"type":"collect_parameters"},{"references":["/parameters","/requirements","/effects"],"step":3,"type":"review"},{"consentBoundary":"the user approves the exact play and parameter values","references":["/parameters","/requirements","/effects"],"step":4,"type":"obtain_run_consent"},{"action":{"command":"rote play run https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1","headlessCommandTemplate":"rote play run https://play.modiqo.ai/rajat-yadav/context-window-guard@0.0.1 <name=value...> --yes"},"preservesAcquisitionBoundaries":["adapter_selection","oauth_dcr","google_discovery","static_token_setup","runtime_security_checks"],"requiresConsent":true,"step":5,"type":"run"}],"producedBy":{"roteVersion":"0.77.0"},"publishedAt":"2026-09-02T05:07:42.865055+00:00","reference":"rajat-yadav/context-window-guard@0.0.1","requirements":{"adapters":[],"browser":{"dependencies":[],"runtime":false,"signIn":false},"localTools":["bash","bc"],"roteCli":{"minimumVersion":"0.62.0"},"sessions":false},"resolution":"pinned","schema":"rote.play.v1","stats":{"downloads":2,"installs":0},"steps":{"count":1,"names":["token_check"]},"title":"context-window-guard","type":"play","version":"0.0.1","visibility":"public"}