{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"project_number":{"type":"integer","description":"The project's number."}},"required":["org","project_number"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"type":"string","description":"The name of the view.","examples":["Sprint Board"]},"layout":{"type":"string","description":"The layout of the view.","enum":["table","board","roadmap"],"examples":["board"]},"filter":{"type":"string","description":"The filter query for the view. See [Filtering projects](https://docs.github.com/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects) for more information.","examples":["is:issue is:open"]},"visible_fields":{"type":"array","description":"`visible_fields` is not applicable to `roadmap` layout views.\nFor `table` and `board` layouts, this represents the field IDs that should be visible in the view. If not provided, the default visible fields will be used.","items":{"type":"integer"},"examples":[[123,456,789]]},"sort_by":{"type":"array","description":"Sorting configuration for the view. Each element is a two-element array of `[field_id, direction]` where `direction` is `\"asc\"` or `\"desc\"`. Supports multiple sort criteria applied in order.","items":{"type":"array","minItems":2,"maxItems":2,"items":{"oneOf":[{"type":"integer"},{"type":"string"}]}},"examples":[[[123,"asc"],[456,"desc"]]]},"group_by":{"type":"array","description":"The field IDs to group items by (horizontal grouping). Supports a single field. The field must support grouping; fields such as `Title`, `Reviewers`, `Linked pull requests`, `Sub-issues progress`, `Tracked by`, and `Tracks` cannot be grouped on.","items":{"type":"integer"},"maxItems":1,"examples":[[123]]},"vertical_group_by":{"type":"array","description":"The field IDs to use as columns in `board` layout (vertical grouping). Supports a single field. The field must support grouping; fields such as `Title`, `Reviewers`, `Linked pull requests`, `Sub-issues progress`, `Tracked by`, and `Tracks` cannot be grouped on.","items":{"type":"integer"},"maxItems":1,"examples":[[456]]}},"required":["name","layout"],"additionalProperties":false,"examples":[{"name":"All Issues","layout":"table","filter":"is:issue","visible_fields":[123,456,789]}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a view for an organization-owned project","id":"github.projects.create-view-for-org","example":{"path":{"org":"example","project_number":1},"body":{"name":"All Issues","layout":"table","filter":"is:issue","visible_fields":[123,456,789]}},"maxRequests":1,"summary":false}}