pylon_redact_message
Redact a specific message from an issue to remove sensitive or inappropriate content.
Instructions
Redact a message from an issue
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | The issue ID | |
| message_id | Yes | The message ID to redact |
Implementation Reference
- src/index.ts:1008-1021 (handler)The MCP tool handler for 'pylon_redact_message'. It accepts issue_id and message_id, calls client.redactMessage(), and returns the redacted message as JSON.
server.tool( 'pylon_redact_message', 'Redact a message from an issue', { issue_id: z.string().describe('The issue ID'), message_id: z.string().describe('The message ID to redact'), }, async ({ issue_id, message_id }) => { const result = await client.redactMessage(issue_id, message_id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, ); - src/index.ts:1011-1014 (schema)Input schema for the tool: issue_id (string) and message_id (string) defined using Zod.
{ issue_id: z.string().describe('The issue ID'), message_id: z.string().describe('The message ID to redact'), }, - src/index.ts:1008-1021 (registration)Tool registered via server.tool() with name 'pylon_redact_message' and description 'Redact a message from an issue'.
server.tool( 'pylon_redact_message', 'Redact a message from an issue', { issue_id: z.string().describe('The issue ID'), message_id: z.string().describe('The message ID to redact'), }, async ({ issue_id, message_id }) => { const result = await client.redactMessage(issue_id, message_id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, ); - src/pylon-client.ts:547-555 (helper)The PylonClient.redactMessage() method that sends a POST request to /issues/{issueId}/messages/{messageId}/redact and returns a SingleResponse<Message>.
async redactMessage( issueId: string, messageId: string, ): Promise<SingleResponse<Message>> { return this.request<SingleResponse<Message>>( 'POST', `/issues/${issueId}/messages/${messageId}/redact`, ); } - src/pylon-client.ts:174-177 (schema)The SingleResponse<T> generic interface used as the response type for redactMessage.
export interface SingleResponse<T> { data: T; request_id: string; }