tool-schemas.expected.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "initial": [
  3. {
  4. "name": "run_code",
  5. "description": "Execute a TypeScript program against the available tools. Takes two required arguments: `code`, the BODY of an async function (erasable syntax only; top-level `await` and `return` work), and `description`, a short summary of what the program does. Call tools as `await tools.name(args)` per the declarations in the system prompt. Only what you print or return is program output — curate it. Image-bearing subtool results are attached after the run. Each call runs in a fresh Node process. Node APIs are available through await import(...). Relative paths use the supplied working directory; process.env starts empty. Direct filesystem access follows this execution's sandbox policy. The working directory is the Session's current directory. A sandbox escalation approves this complete program for one execution only. Nested tools retain their own policies and approvals. Request wider access only after evidence of a denial. Earlier effects may already have completed: inspect them before explicitly retrying. Programs are never replayed automatically.",
  6. "parameters": {
  7. "type": "object",
  8. "properties": {
  9. "code": {
  10. "type": "string",
  11. "description": "The program: the body of an async TypeScript function."
  12. },
  13. "description": {
  14. "type": "string",
  15. "description": "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI). Examples: \"Count TODO markers across packages\"; \"Read failing test and its fixture\"; \"Rename config key in every cordis.yml\"."
  16. },
  17. "timeoutMs": {
  18. "type": "number",
  19. "description": "Positive elapsed-time budget in milliseconds, including nested tool and approval waits. Default 120000; capped at 600000. Zero does not disable the deadline."
  20. },
  21. "sandbox_permissions": {
  22. "type": "string",
  23. "description": "Wider sandbox mode for this complete program execution; requires justification and approval.",
  24. "enum": [
  25. "workspace-write",
  26. "danger-full-access"
  27. ]
  28. },
  29. "justification": {
  30. "type": "string",
  31. "description": "Reason this complete program needs wider access, shown to the user for approval."
  32. }
  33. },
  34. "required": [
  35. "code",
  36. "description"
  37. ]
  38. }
  39. }
  40. ],
  41. "changes": []
  42. }