PickSkill
← Back

fetch-context

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.

SKILL.md
Rendered from GitHub raw
View raw ↗

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.