fetch-context

star 6

Fetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially.

jim60105 By jim60105 schedule Updated 2/8/2026

name: fetch-context description: Fetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially. allowed-tools: Bash

Fetch Context Skill

Retrieve additional context from the platform to better understand the conversation.

Usage

# Get recent messages
${HOME}/.agents/skills/fetch-context/scripts/fetch-context.ts \
  --session-id "$SESSION_ID" \
  --type recent_messages \
  --limit 20

# Search messages
${HOME}/.agents/skills/fetch-context/scripts/fetch-context.ts \
  --session-id "$SESSION_ID" \
  --type search_messages \
  --query "project deadline" \
  --limit 10

Available Types

  • recent_messages: Get more recent message history
  • search_messages: Search for messages by keyword
  • user_info: Get information about the current user

Critical Rules

  1. Timeout: The script won't run for more than 30 seconds. If it hangs, do stop_bash and do not retry, return an error message in JSON format.
Install via CLI
npx skills add https://github.com/jim60105/AIr-Friends --skill fetch-context
Repository Details
star Stars 6
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator