Files
LLeMbas-CLI/harness/tools/python.json
T
HomerandClaude Opus 5.5 ef9dcf33c9
ci / check (push) Canceled after 0s
Harness spec: conformance names the server's modules; python's limits
instructions.json and fs_access.json pointed at services/files/*.py,
which LLeMbas never had: the chain is services/workspace.py, the view
services/fs.py with security/access.py. context.json no longer says
"to be written". python's {{seconds}}, {{memory}}, {{output}} and
{{packages}} are implementation-defined; their descriptions record what
LLeMbas 2.0 fills (30 s, 512 MB, 20,000 characters, the standard library
only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 01:20:42 +00:00

51 lines
2.1 KiB
JSON

{
"name": "python",
"scope": "llembas",
"sessions": "chat",
"risk": "execute",
"exclusive": false,
"block": "shell",
"purpose": "purpose",
"requires": [
"page"
],
"unavailable": "Python cannot run now: no open browser page is attached to this chat.",
"aliases": {
"cli": [],
"llembas": []
},
"variables": {
"packages": "the packages the instance provides beyond the standard library, as a list, or \"none\" — implementation-defined; LLeMbas 2.0: none (the standard library only)",
"seconds": "the time limit of one call, in seconds — implementation-defined; LLeMbas 2.0: 30",
"memory": "the memory limit of one call, with its unit — implementation-defined; LLeMbas 2.0: 512 MB",
"output": "how much printed output comes back, with its unit — implementation-defined; LLeMbas 2.0: 20,000 characters"
},
"description": "Run Python for calculations and for working with files — parse JSON or CSV, transform text, compute. It runs in the user's browser (Pyodide), sandboxed: no network, no shell, no packages beyond the standard library and these: {{packages}}. Returns what the code printed and the value of its last expression.\n\n- `files` are copied in before the run, at the same paths, from what this session can read.\n- Files the code writes come back only when listed in `save`: each is written as the write tool would write it, with this session's permissions.\n- At most {{seconds}} seconds and {{memory}} of memory per call; printed output past {{output}} is cut.\n- Every call starts fresh: nothing is kept between calls.",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The Python code to run"
},
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "Files to copy in before the run"
},
"save": {
"type": "array",
"items": {
"type": "string"
},
"description": "Files the code writes that are to be saved back"
}
},
"required": [
"code"
]
}
}