Get Session Activity
jules_get_activityRetrieve full details of a specific activity in a Jules session, including code changes, command output, and media files. Provide session and activity IDs to access event type and timestamps.
Instructions
Get details of a specific activity in a Jules session.
Retrieves full details including artifacts like code changes, bash output, or media files.
Args:
sessionId (string, required): The session ID
activityId (string, required): The activity ID
response_format ('markdown' | 'json'): Output format
Returns: Full activity details including:
Event type (plan generated, message, progress, etc.)
Artifacts (code changes, command output, media)
Timestamps
Examples:
Get plan details: activity with planGenerated
Get code diff: activity with changeSet artifact
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"activityId": "<activityId>"
},
"name": "jules_get_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The session ID | |
| activityId | Yes | The activity ID | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |