INNER CODE UNIT · Python
extract_tool_uses
softaworks/agent-toolkit · skills/daily-meeting-update/scripts/claude_digest.py:94
def extract_tool_uses(content) -> list:
"""Extract tool_use blocks from message content."""
if not isinstance(content, list):
return []
return [
{'name': block.get('name'), 'input': block.get('input', {})}
for block in content
if isinstance(block, dict) and block.get('type') == 'tool_use'
]
def parse_session_file(file_path: Path) -> Optional[dict]:
"""Parse a JSONL session file."""
messages = []
summary = None
session_id = file_path.stem
project_path = decode_project_path(file_path.parent.name)
git_branch = None