{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates an artifact attached to an issue.\n\nThe artifact type defaults to `generic` when omitted. Creating an artifact\nrequires permission to update the issue.\n\nThe request can return `403` if the repository is read-only or locked, or a\nGitHub App installation has only `issues: read` permission.\n\nTo create an HTML artifact, set `type` to `embedded_html` and provide the HTML source\nin `body`. Open the returned `html_url` to inspect the source, then select\n**Preview** to view the rendered artifact. Select **Show source** to return\nto the HTML source.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"issue_number":{"type":"integer","description":"The number that identifies the issue."}},"required":["owner","repo","issue_number"],"additionalProperties":false},"body":{"type":"object","properties":{"type":{"type":"string","description":"The artifact type.","enum":["generic","link","plan","embedded_html"],"default":"generic"},"name":{"type":"string","minLength":1,"description":"The human-readable name of the artifact."},"body":{"type":"string","minLength":1,"description":"The artifact content. For `embedded_html` artifacts, provide the HTML source."}},"required":["name","body"],"examples":[{"type":"generic","name":"Research notes","body":"## Findings\n\nThe API supports issue artifacts."}]}},"required":["path","body"],"additionalProperties":false},"name":"Create an issue artifact","id":"github.issues.create-issue-artifact","example":{"path":{"owner":"octocat","repo":"hello-world","issue_number":1},"body":{"type":"generic","name":"Research notes","body":"## Findings\n\nThe API supports issue artifacts."}},"maxRequests":1,"summary":false}}