catalog.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "tools": [
  3. {
  4. "name": "take_screenshot",
  5. "description": "Take a screenshot of the page or element.",
  6. "inputSchema": {
  7. "type": "object",
  8. "properties": {
  9. "pageId": {
  10. "type": "number",
  11. "description": "Targets a specific page by ID."
  12. },
  13. "format": {
  14. "type": "string",
  15. "enum": [
  16. "png",
  17. "jpeg",
  18. "webp"
  19. ],
  20. "default": "png",
  21. "description": "Type of format to save the screenshot as. Default is \"png\""
  22. },
  23. "quality": {
  24. "type": "number",
  25. "minimum": 0,
  26. "maximum": 100,
  27. "description": "Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format."
  28. },
  29. "uid": {
  30. "type": "string",
  31. "description": "The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot."
  32. },
  33. "fullPage": {
  34. "type": "boolean",
  35. "description": "If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid."
  36. },
  37. "filePath": {
  38. "type": "string",
  39. "description": "The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response."
  40. }
  41. },
  42. "required": [
  43. "pageId"
  44. ],
  45. "additionalProperties": true,
  46. "$schema": "http://json-schema.org/draft-07/schema#"
  47. },
  48. "annotations": {
  49. "readOnlyHint": false
  50. },
  51. "execution": {
  52. "taskSupport": "forbidden"
  53. }
  54. }
  55. ]
  56. }