One change
quickstart
agents-and-tools/agent-skills/quickstart
Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
agents-and-tools/agent-skills/quickstart Changed · +16 / -26 lines
from line 95
``` ```php PHP - // The PHP SDK exposes the Skills API under the beta namespace; field names can differ from other SDKs. // List Anthropic-managed Skills - $skills = $client->beta->skills->list(source: 'anthropic'); + $skills = $client->skills->list(source: 'anthropic'); - foreach ($skills->data as $skill) { - echo "{$skill->id}: {$skill->displayTitle}\n"; + foreach ($skills->getItems() as $skill) { + echo "{$skill->id}: {$skill->displayName}\n"; } ```
from line 300
``` ```php PHP - // The PHP SDK supports container skills only through $client->beta->messages with the skills beta. // Create a message with the PowerPoint Skill - $response = $client->beta->messages->create( + $response = $client->messages->create( model: 'claude-opus-5', maxTokens: 16000, - betas: ['skills-2025-10-02'], container: [ - 'skills' => [['type' => 'anthropic', 'skill_id' => 'pptx', 'version' => 'latest']], + 'skills' => [['type' => 'anthropic', 'skillID' => 'pptx', 'version' => 'latest']], ], messages: [ [
from line 543
``` ```php PHP - // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs. // Extract the file ID. The code execution tool runs the Skill's code through // its Bash sub-tool, and generated files appear as bash_code_execution_output // items inside the bash_code_execution_tool_result block.
from line 563
if ($fileId !== null) { // Download the file and save it $outputPath = sys_get_temp_dir() . '/renewable_energy.pptx'; - $fileContent = $client->beta->files->download($fileId); + $fileContent = $client->files->download($fileId); file_put_contents($outputPath, $fileContent); echo "Presentation saved to {$outputPath}\n"; }
from line 757
``` ```php PHP - // The PHP SDK supports container skills only through $client->beta->messages with the skills beta. - $response = $client->beta->messages->create( + $response = $client->messages->create( model: 'claude-opus-5', maxTokens: 16000, - betas: ['skills-2025-10-02'], container: [ 'skills' => [ - ['type' => 'anthropic', 'skill_id' => 'xlsx', 'version' => 'latest'], + ['type' => 'anthropic', 'skillID' => 'xlsx', 'version' => 'latest'], ], ], messages: [
from line 771
'content' => 'Create a quarterly sales tracking spreadsheet with sample data', ], ], - tools: [new BetaCodeExecutionTool20260521()], + tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']], ); ```
from line 950
``` ```php PHP - // The PHP SDK supports container skills only through $client->beta->messages with the skills beta. - $response = $client->beta->messages->create( + $response = $client->messages->create( model: 'claude-opus-5', maxTokens: 16000, - betas: ['skills-2025-10-02'], container: [ 'skills' => [ - ['type' => 'anthropic', 'skill_id' => 'docx', 'version' => 'latest'], + ['type' => 'anthropic', 'skillID' => 'docx', 'version' => 'latest'], ], ], messages: [
from line 964
'content' => 'Write a 2-page report on the benefits of renewable energy', ], ], - tools: [new BetaCodeExecutionTool20260521()], + tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']], ); ```
from line 1143
``` ```php PHP - // The PHP SDK supports container skills only through $client->beta->messages with the skills beta. - $response = $client->beta->messages->create( + $response = $client->messages->create( model: 'claude-opus-5', maxTokens: 16000, - betas: ['skills-2025-10-02'], container: [ 'skills' => [ - ['type' => 'anthropic', 'skill_id' => 'pdf', 'version' => 'latest'], + ['type' => 'anthropic', 'skillID' => 'pdf', 'version' => 'latest'], ], ], messages: [
from line 1157
'content' => 'Generate a PDF invoice template', ], ], - tools: [new BetaCodeExecutionTool20260521()], + tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']], ); ```