TypeScript output property schemas for Reddit posts, comments, and listings. Reuse when building Reddit integration tools.
// Source: https://github.com/simstudioai/sim | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { OutputProperty, ToolResponse } from '@/tools/types'
/**
* Shared output property definitions for Reddit API responses.
* Based on official Reddit API documentation: https://github.com/reddit-archive/reddit/wiki/JSON
*/
/**
* Output definition for Reddit post (Link) objects.
* Implements votable and created interfaces per Reddit API docs.
*/
export const POST_OUTPUT_PROPERTIES = {
id: { type: 'string', description: 'Post ID' },
name: { type: 'string', description: 'Thing fullname (t3_xxxxx)' },
title: { type: 'string', description: 'Post title (may contain newli
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key